From 1133c4b7bf78ef2ac4215bf36ca0a5c22d2b41ec Mon Sep 17 00:00:00 2001 From: Jguer Date: Mon, 22 Aug 2016 02:40:15 +0100 Subject: [PATCH 1/3] Added gruvbox theme --- fish_prompt.fish | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/fish_prompt.fish b/fish_prompt.fish index 8d1f9b3..5688ada 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -1152,6 +1152,41 @@ function fish_prompt -d 'bobthefish, a fish theme optimized for awesome' set __color_rvm $ruby_red $grey[1] --bold set __color_virtualfish $blue[2] $grey[1] --bold + case 'gruvbox' + # light medium dark darkest + # ------ ------ ------ ------- + set -l red fb4934 cc241d + set -l green b8bb26 98971a + set -l yellow fabd2f d79921 + set -l aqua 8ec07c 689d6a + set -l blue 83a598 458588 + set -l grey cccccc 999999 333333 + set -l fg fbf1c7 ebdbb2 d5c4a1 a89984 + set -l bg 504945 282828 + + set -g __color_initial_segment_exit $fg[1] $red[2] --bold + set -g __color_initial_segment_su $fg[1] $green[2] --bold + set -g __color_initial_segment_jobs $fg[1] $aqua[2] --bold + + set -g __color_path $blue[1] $bg[2] + set -g __color_path_basename $blue[1] $bg[2] --bold + set -g __color_path_nowrite $red[1] $fg[2] + set -g __color_path_nowrite_basename $red[1] $fg[2] --bold + + set -g __color_repo $yellow[2] $bg[1] + set -g __color_repo_work_tree $yellow[2] $fg[2] --bold + set -g __color_repo_dirty $red[2] $fg[2] + set -g __color_repo_staged $yellow[1] $bg[1] + + set -g __color_vi_mode_default $fg[4] $bg[2] --bold + set -g __color_vi_mode_insert $blue[1] $bg[2] --bold + set -g __color_vi_mode_visual $yellow[1] $bg[2] --bold + + set -g __color_vagrant $blue[2] $fg[2] --bold + set -g __color_username $fg[3] $blue[2] + set -g __color_rvm $red[2] $fg[2] --bold + set -g __color_virtualfish $blue[2] $fg[2] --bold + case '*' # default dark theme # light medium dark # ------ ------ ------ From 22451d400f5c1a71db8a1fae0b65c4256db973c2 Mon Sep 17 00:00:00 2001 From: John Guerreiro Date: Mon, 22 Aug 2016 02:45:23 +0100 Subject: [PATCH 2/3] Fixed repo color to green instead of yellow --- fish_prompt.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 5688ada..8442a3f 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -1173,8 +1173,8 @@ function fish_prompt -d 'bobthefish, a fish theme optimized for awesome' set -g __color_path_nowrite $red[1] $fg[2] set -g __color_path_nowrite_basename $red[1] $fg[2] --bold - set -g __color_repo $yellow[2] $bg[1] - set -g __color_repo_work_tree $yellow[2] $fg[2] --bold + set -g __color_repo $green[2] $bg[1] + set -g __color_repo_work_tree $green[2] $fg[2] --bold set -g __color_repo_dirty $red[2] $fg[2] set -g __color_repo_staged $yellow[1] $bg[1] From 3ecd0726ca5114896f042e3db47e17495da6995a Mon Sep 17 00:00:00 2001 From: Jguer Date: Mon, 22 Aug 2016 12:00:02 +0100 Subject: [PATCH 3/3] Changed path segment for gruvbox --- fish_prompt.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 8442a3f..1ee59de 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -1168,8 +1168,8 @@ function fish_prompt -d 'bobthefish, a fish theme optimized for awesome' set -g __color_initial_segment_su $fg[1] $green[2] --bold set -g __color_initial_segment_jobs $fg[1] $aqua[2] --bold - set -g __color_path $blue[1] $bg[2] - set -g __color_path_basename $blue[1] $bg[2] --bold + set -g __color_path $bg[1] $fg[2] + set -g __color_path_basename $bg[1] $fg[2] --bold set -g __color_path_nowrite $red[1] $fg[2] set -g __color_path_nowrite_basename $red[1] $fg[2] --bold