Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom named color schemes as plugins. #202

Closed
wants to merge 1 commit into from

Conversation

dukejones
Copy link
Contributor

This will allow users to keep repositories of named color schemes, and to share them with everyone.

Example: theme-bobthefish-colorschemes

Working version of the Monokai example from the wiki pasted below:

function __bobthefish_color_scheme_monokai -S -d 'Monokai colors'
  __bobthefish_colors base16-dark

  set -l base00 272822
  set -l base01 383830
  set -l base02 49483e
  set -l base03 75715e
  set -l base04 a59f85
  set -l base05 f8f8f2
  set -l base06 f5f4f1
  set -l base07 f9f8f5
  set -l base08 f92672 # red
  set -l base09 fd971f # orange
  set -l base0A f4bf75 # yellow
  set -l base0B a6e22e # green
  set -l base0C a1efe4 # cyan
  set -l base0D 66d9ef # blue
  set -l base0E ae81ff # violet
  set -l base0F cc6633 # brown

  set -l colorfg $base02

  set -x color_initial_segment_exit     $base05 $base08 --bold
  set -x color_initial_segment_su       $base05 $base0B --bold
  set -x color_initial_segment_jobs     $base05 $base0D --bold

  set -x color_path                     $base02 $base05
  set -x color_path_basename            $base02 $base06 --bold
  set -x color_path_nowrite             $base02 $base08
  set -x color_path_nowrite_basename    $base02 $base08 --bold

  set -x color_repo                     $base0B $colorfg
  set -x color_repo_work_tree           $base02 $colorfg --bold
  set -x color_repo_dirty               $base08 $colorfg
  set -x color_repo_staged              $base09 $colorfg

  set -x color_vi_mode_default          $base03 $colorfg --bold
  set -x color_vi_mode_insert           $base0B $colorfg --bold
  set -x color_vi_mode_visual           $base09 $colorfg --bold

  set -x color_vagrant                  $base0C $colorfg --bold
  set -x color_username                 $base02 $base0D --bold
  set -x color_hostname                 $base02 $base0D
  set -x color_rvm                      $base08 $colorfg --bold
  set -x color_virtualfish              $base0D $colorfg --bold
  set -x color_virtualgo                $base0D $colorfg --bold
  set -x color_desk                     $base0D $colorfg --bold
end

@dukejones
Copy link
Contributor Author

Closing to give preference to #205

@dukejones dukejones closed this Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant