You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
132 lines
5.1 KiB
132 lines
5.1 KiB
# base16-fish (https://github.com/tomyun/base16-fish) |
|
# based on base16-shell (https://github.com/chriskempson/base16-shell) |
|
# Black Metal (Burzum) scheme by metalelf0 (https://github.com/metalelf0) |
|
|
|
function base16-black-metal-burzum -d "Black Metal (Burzum)" |
|
set color00 00/00/00 # Base 00 - Black |
|
set color01 5f/87/87 # Base 08 - Red |
|
set color02 dd/ee/cc # Base 0B - Green |
|
set color03 99/bb/aa # Base 0A - Yellow |
|
set color04 88/88/88 # Base 0D - Blue |
|
set color05 99/99/99 # Base 0E - Magenta |
|
set color06 aa/aa/aa # Base 0C - Cyan |
|
set color07 c1/c1/c1 # Base 05 - White |
|
set color08 33/33/33 # Base 03 - Bright Black |
|
set color09 $color01 # Base 08 - Bright Red |
|
set color10 $color02 # Base 0B - Bright Green |
|
set color11 $color03 # Base 0A - Bright Yellow |
|
set color12 $color04 # Base 0D - Bright Blue |
|
set color13 $color05 # Base 0E - Bright Magenta |
|
set color14 $color06 # Base 0C - Bright Cyan |
|
set color15 c1/c1/c1 # Base 07 - Bright White |
|
set color16 aa/aa/aa # Base 09 |
|
set color17 44/44/44 # Base 0F |
|
set color18 12/12/12 # Base 01 |
|
set color19 22/22/22 # Base 02 |
|
set color20 99/99/99 # Base 04 |
|
set color21 99/99/99 # Base 06 |
|
set colorfg $color07 # Base 05 - White |
|
set colorbg $color00 # Base 00 - Black |
|
|
|
if test -n "$TMUX" |
|
# Tell tmux to pass the escape sequences through |
|
# (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) |
|
function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; |
|
function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; |
|
function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; |
|
else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] |
|
# GNU screen (screen, screen-256color, screen-256color-bce) |
|
function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; |
|
function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; |
|
function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; |
|
else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] |
|
function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; |
|
function put_template_var; true; end; |
|
function put_template_custom; true; end; |
|
else |
|
function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; |
|
function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; |
|
function put_template_custom; printf '\033]%s%s\033\\' $argv; end; |
|
end |
|
|
|
# 16 color space |
|
put_template 0 $color00 |
|
put_template 1 $color01 |
|
put_template 2 $color02 |
|
put_template 3 $color03 |
|
put_template 4 $color04 |
|
put_template 5 $color05 |
|
put_template 6 $color06 |
|
put_template 7 $color07 |
|
put_template 8 $color08 |
|
put_template 9 $color09 |
|
put_template 10 $color10 |
|
put_template 11 $color11 |
|
put_template 12 $color12 |
|
put_template 13 $color13 |
|
put_template 14 $color14 |
|
put_template 15 $color15 |
|
|
|
# 256 color space |
|
put_template 16 $color16 |
|
put_template 17 $color17 |
|
put_template 18 $color18 |
|
put_template 19 $color19 |
|
put_template 20 $color20 |
|
put_template 21 $color21 |
|
|
|
# foreground / background / cursor color |
|
if test -n "$ITERM_SESSION_ID" |
|
# iTerm2 proprietary escape codes |
|
put_template_custom Pg c1c1c1 # foreground |
|
put_template_custom Ph 000000 # background |
|
put_template_custom Pi c1c1c1 # bold color |
|
put_template_custom Pj 222222 # selection color |
|
put_template_custom Pk c1c1c1 # selected text color |
|
put_template_custom Pl c1c1c1 # cursor |
|
put_template_custom Pm 000000 # cursor text |
|
else |
|
put_template_var 10 $colorfg |
|
if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] |
|
put_template_var 11 $colorbg |
|
if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] |
|
put_template_var 708 $colorbg # internal border (rxvt) |
|
end |
|
end |
|
put_template_custom 12 ";7" # cursor (reverse video) |
|
end |
|
|
|
# set syntax highlighting colors |
|
set -U fish_color_autosuggestion 222222 |
|
set -U fish_color_cancel -r |
|
set -U fish_color_command green #white |
|
set -U fish_color_comment 222222 |
|
set -U fish_color_cwd green |
|
set -U fish_color_cwd_root red |
|
set -U fish_color_end brblack #blue |
|
set -U fish_color_error red |
|
set -U fish_color_escape yellow #green |
|
set -U fish_color_history_current --bold |
|
set -U fish_color_host normal |
|
set -U fish_color_match --background=brblue |
|
set -U fish_color_normal normal |
|
set -U fish_color_operator blue #green |
|
set -U fish_color_param 999999 |
|
set -U fish_color_quote yellow #brblack |
|
set -U fish_color_redirection cyan |
|
set -U fish_color_search_match bryellow --background=222222 |
|
set -U fish_color_selection white --bold --background=222222 |
|
set -U fish_color_status red |
|
set -U fish_color_user brgreen |
|
set -U fish_color_valid_path --underline |
|
set -U fish_pager_color_completion normal |
|
set -U fish_pager_color_description yellow --dim |
|
set -U fish_pager_color_prefix white --bold #--underline |
|
set -U fish_pager_color_progress brwhite --background=cyan |
|
|
|
# remember current theme |
|
set -U base16_theme black-metal-burzum |
|
|
|
# clean up |
|
functions -e put_template put_template_var put_template_custom |
|
end
|
|
|