浏览代码

Display separator when purpose is defined

DricomDragon 4 年之前
父节点
当前提交
cae7ef1fce
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Install/Templates/home/config/fish/functions/fish_prompt.fish

+ 5 - 0
Install/Templates/home/config/fish/functions/fish_prompt.fish

@@ -31,6 +31,11 @@ function fish_prompt --description 'Write out the prompt'
     end
     end
 
 
     # Purpose
     # Purpose
+    set -q FISH_SHELL_PURPOSE
+    if test $status -eq 0
+        set_color normal
+        echo -n '['
+    end
     set_color blue
     set_color blue
     echo -n $FISH_SHELL_PURPOSE
     echo -n $FISH_SHELL_PURPOSE
     set_color normal
     set_color normal