diff options
Diffstat (limited to 'functions/fish_prompt.fish')
-rw-r--r-- | functions/fish_prompt.fish | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index ad34183..9cc8ef7 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -1,9 +1,9 @@ function fish_prompt - set cmdcount (math $cmdcount+1) - printf '[%d] ' $cmdcount + printf '[%s@%s] ' (echo $USERNAME) (cat /etc/hostname) if test -d .git - printf '%s%s %s(%s)%s>: ' (set_color red) (pwd) (set_color blue) (git branch | grep "*" | awk -F" " '{print $2}') (set_color normal) + printf '%s%s %s(%s)' (set_color red) (pwd) (set_color blue) (git branch | grep "*" | awk -F" " '{print $2}') else - printf '%s%s%s>: ' (set_color red) (pwd) (set_color normal) + printf '%s%s' (set_color red) (pwd) end + printf '%s>: ' (set_color normal) end |