From 38c9d1f7ee540147014346292628cc6bf485b56d Mon Sep 17 00:00:00 2001 From: Marvin Steadfast Date: Fri, 11 May 2018 09:17:55 +0200 Subject: [PATCH] Adding dracula theme --- README.md | 1 + functions/__bobthefish_colors.fish | 37 ++++++++++++++++++++++++ functions/bobthefish_display_colors.fish | 1 + 3 files changed, 39 insertions(+) diff --git a/README.md b/README.md index c4af073..8c14026 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,7 @@ one of the following options to change the prompt colors. default Base16 theme. - `zenburn`. An adaptation of Zenburn. - `gruvbox`. An adaptation of gruvbox. +- `dracula`. An adaptation of dracula. Some of these may not look right if your terminal does not support 24 bit color, in which case you can try one of the `terminal` schemes (below). However, if diff --git a/functions/__bobthefish_colors.fish b/functions/__bobthefish_colors.fish index eead958..4c7e224 100644 --- a/functions/__bobthefish_colors.fish +++ b/functions/__bobthefish_colors.fish @@ -427,6 +427,43 @@ function __bobthefish_colors -S -a color_scheme -d 'Define colors used by bobthe set -x color_virtualgo $blue[2] $fg[2] --bold set -x color_desk $blue[2] $fg[2] --bold + case 'dracula' + set -l grey 282A36 + set -l red FF5555 + set -l green 50FA7B + set -l yellow F1FA8C + set -l orange FFB86C + set -l blue 6272A4 + set -l white F8F8F2 + set -l purple 6272A4 + + set -x color_initial_segment_exit $white $red --bold + set -x color_initial_segment_su $white $green --bold + set -x color_initial_segment_jobs $white $blue --bold + + set -x color_path $purple $white + set -x color_path_basename $purple $white --bold + set -x color_path_nowrite $purple $red + set -x color_path_nowrite_basename $purple $red --bold + + set -x color_repo $green $grey + set -x color_repo_work_tree $grey $grey --bold + set -x color_repo_dirty $red $grey + set -x color_repo_staged $yellow $grey + + set -x color_vi_mode_default $grey $yellow --bold + set -x color_vi_mode_insert $green $grey --bold + set -x color_vi_mode_visual $yellow $grey --bold + + set -x color_vagrant $blue $green --bold + set -x color_k8s $green $white --bold + set -x color_username $grey $blue --bold + set -x color_hostname $grey $blue + set -x color_rvm $red $grey --bold + set -x color_virtualfish $blue $grey --bold + set -x color_virtualgo $blue $grey --bold + set -x color_desk $blue $grey --bold + case '*' # default dark theme # light medium dark # ------ ------ ------ diff --git a/functions/bobthefish_display_colors.fish b/functions/bobthefish_display_colors.fish index d9008af..abdd4c6 100644 --- a/functions/bobthefish_display_colors.fish +++ b/functions/bobthefish_display_colors.fish @@ -4,6 +4,7 @@ function bobthefish_display_colors -a color_scheme -d 'Print example prompt colo solarized solarized-light \ base16 base16-light \ gruvbox zenburn \ + dracula \ terminal terminal-dark-white \ terminal-light terminal-light-black \ terminal2 terminal2-dark-white \