all repos — dotfiles @ 063efd2904acee6812dacc44181a07ad18400c9e

my *nix dotfiles

Have git prompt show clean/dirty state
Anirudh Oppiliappan x@icyphox.sh
Mon, 13 Jul 2020 20:39:56 +0530
commit

063efd2904acee6812dacc44181a07ad18400c9e

parent

55f5cb668da30bd1ac1d28a0d7a42aa62dce56c0

1 files changed, 4 insertions(+), 3 deletions(-)

jump to
M config/fish/functions/fish_prompt.fishconfig/fish/functions/fish_prompt.fish

@@ -1,12 +1,13 @@

function fish_prompt --description 'Write out the prompt' set -l cyan (set_color cyan) - set -l prefix '▲' + set -l prefix '$' printf '\n' set_color cyan printf '%s' (prompt_pwd) set_color normal - - printf '%s\n' (__fish_git_prompt) + printf '%s\n' (__fish_git_prompt)(__fish_git_prompt_dirty) + set_color white printf '%s ' $prefix + set_color normal end