From 7694d653cf61ec9fc38b398c39a12af45bf7c5cf Mon Sep 17 00:00:00 2001 From: Bruno Pinto Date: Mon, 23 Jul 2012 11:00:14 -0300 Subject: [PATCH] robbyrussell zsh theme ported to fish --- themes/robbyrussell/fish_prompt.fish | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 themes/robbyrussell/fish_prompt.fish diff --git a/themes/robbyrussell/fish_prompt.fish b/themes/robbyrussell/fish_prompt.fish new file mode 100644 index 0000000..09e3029 --- /dev/null +++ b/themes/robbyrussell/fish_prompt.fish @@ -0,0 +1,12 @@ +function fish_prompt + if [ (git_branch_name) ] + if [ (is_git_dirty) ] + set git_dirty "āœ—" + end + + printf '%sāžœ %s %s git:(%s%s%s) %s ' (set_color red) (set_color blue) (basename (prompt_pwd)) (set_color red) (git_branch_name) (set_color blue) $git_dirty + else + printf '%sāžœ %s %s ' (set_color red) (set_color blue) (basename (prompt_pwd)) + end +end +