浏览代码

Move status display in the left side of the prompt

DricomDragon 5 年之前
父节点
当前提交
a1421c8fc1

+ 1 - 0
Install/Templates/fish/functions/fish_prompt.fish

@@ -26,6 +26,7 @@ function fish_prompt --description 'Write out the prompt'
 
     if not test $last_status -eq 0
         set_color $fish_color_error
+		echo -n $last_status
     end
 
     echo -n '➤ '

+ 1 - 8
Install/Templates/fish/functions/fish_right_prompt.fish

@@ -1,10 +1,3 @@
 function fish_right_prompt --description 'Write out the prompt on the right'
-	set -l last_status $status
-
-    if not test $last_status -eq 0
-        set_color $fish_color_error
-		echo $last_status
-    end
-
-    set_color normal
+	# nothing for now
 end