From dbf09a6f2cc016c1d571ec337acd11e517094456 Mon Sep 17 00:00:00 2001 From: Nathan Lasseter Date: Sun, 3 Apr 2011 23:30:24 +0100 Subject: First Commit --- functions/fish_prompt.fish | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 functions/fish_prompt.fish (limited to 'functions/fish_prompt.fish') diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish new file mode 100644 index 0000000..ad34183 --- /dev/null +++ b/functions/fish_prompt.fish @@ -0,0 +1,9 @@ +function fish_prompt + set cmdcount (math $cmdcount+1) + printf '[%d] ' $cmdcount + 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) + else + printf '%s%s%s>: ' (set_color red) (pwd) (set_color normal) + end +end -- cgit v1.2.1