From edbea29aae10f457887460278049ada26310e2f8 Mon Sep 17 00:00:00 2001 From: Luis Angel Vicente Sanchez Date: Fri, 9 Jan 2015 15:17:02 +0000 Subject: [PATCH 1/4] * add fox theme. --- themes/fox/fish_prompt.fish | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 themes/fox/fish_prompt.fish diff --git a/themes/fox/fish_prompt.fish b/themes/fox/fish_prompt.fish new file mode 100644 index 0000000..e8c55dc --- /dev/null +++ b/themes/fox/fish_prompt.fish @@ -0,0 +1,44 @@ +function fish_prompt + # Cache exit status + set -l last_status $status + + # Just calculate these once, to save a few cycles when displaying the prompt + if not set -q __fish_prompt_hostname + set -g __fish_prompt_hostname (hostname|cut -d . -f 1) + end + if not set -q __fish_prompt_char + switch (id -u) + case 0 + set -g __fish_prompt_char '#' + case '*' + set -g __fish_prompt_char '>' + end + end + + # Setup colors + set -l normal (set_color normal) + set -l red (set_color red) + set -l cyan (set_color cyan) + set -l white (set_color white) + set -l gray (set_color -o cyan) + set -l brwhite (set_color -o white) + + # Configure __fish_git_prompt + set -g __fish_git_prompt_showdirtystate true + set -g __fish_git_prompt_showuntrackedfiles true + set -g __fish_git_prompt_showstashstate true + set -g __fish_git_prompt_show_informative_status true + set -g __fish_git_prompt_color white + set -g __fish_git_prompt_color_flags red + set -g __fish_git_prompt_color_prefix cyan + set -g __fish_git_prompt_color_suffix cyan + + # Line 1 + echo -n $cyan'┌['$white$USER$cyan'@'$white$__fish_prompt_hostname$cyan']'$white'-'$cyan'('$white(prompt_pwd)$cyan')' + #-['$white$__fish_git_prompt$cyan']-' + __fish_git_prompt + echo + + # Line 2 + echo -n $cyan'└'$__fish_prompt_char $normal +end From 15eef514ca350d721d8ec97d43b9a433197e77d3 Mon Sep 17 00:00:00 2001 From: Luis Angel Vicente Sanchez Date: Fri, 9 Jan 2015 15:27:15 +0000 Subject: [PATCH 2/4] * fix git prompt. --- themes/fox/fish_prompt.fish | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/themes/fox/fish_prompt.fish b/themes/fox/fish_prompt.fish index e8c55dc..8b2e5ef 100644 --- a/themes/fox/fish_prompt.fish +++ b/themes/fox/fish_prompt.fish @@ -20,23 +20,21 @@ function fish_prompt set -l red (set_color red) set -l cyan (set_color cyan) set -l white (set_color white) - set -l gray (set_color -o cyan) - set -l brwhite (set_color -o white) # Configure __fish_git_prompt - set -g __fish_git_prompt_showdirtystate true - set -g __fish_git_prompt_showuntrackedfiles true - set -g __fish_git_prompt_showstashstate true - set -g __fish_git_prompt_show_informative_status true + set -g __fish_git_prompt_char_stateseparator ' ' set -g __fish_git_prompt_color white set -g __fish_git_prompt_color_flags red set -g __fish_git_prompt_color_prefix cyan set -g __fish_git_prompt_color_suffix cyan + set -g __fish_git_prompt_showdirtystate true + set -g __fish_git_prompt_showuntrackedfiles true + set -g __fish_git_prompt_showstashstate true + set -g __fish_git_prompt_show_informative_status true # Line 1 echo -n $cyan'┌['$white$USER$cyan'@'$white$__fish_prompt_hostname$cyan']'$white'-'$cyan'('$white(prompt_pwd)$cyan')' - #-['$white$__fish_git_prompt$cyan']-' - __fish_git_prompt + __fish_git_prompt "-[git://%s]-" echo # Line 2 From 060110d859f826f8ae4494d83b4f459397e863f0 Mon Sep 17 00:00:00 2001 From: Luis Angel Vicente Sanchez Date: Fri, 9 Jan 2015 15:29:18 +0000 Subject: [PATCH 3/4] * add README.md --- themes/fox/README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 themes/fox/README.md diff --git a/themes/fox/README.md b/themes/fox/README.md new file mode 100644 index 0000000..546028d --- /dev/null +++ b/themes/fox/README.md @@ -0,0 +1,3 @@ +## fox + +cloned from oh-my-zsh. From 49821054db19ac5d2ed6eec85310e10b5913ec96 Mon Sep 17 00:00:00 2001 From: Luis Angel Vicente Sanchez Date: Fri, 9 Jan 2015 16:37:50 +0000 Subject: [PATCH 4/4] Update README.md --- themes/fox/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/fox/README.md b/themes/fox/README.md index 546028d..a3b290d 100644 --- a/themes/fox/README.md +++ b/themes/fox/README.md @@ -1,3 +1,5 @@ ## fox cloned from oh-my-zsh. + +![fox theme](http://i60.tinypic.com/2myaibn.jpg)