fish: Better colors
This commit is contained in:
parent
711db24d05
commit
ec8b51c80f
4 changed files with 24 additions and 21 deletions
|
@ -10,28 +10,29 @@ SETUVAR _fish_abbr_gpg:gpg2
|
||||||
SETUVAR _fish_abbr_vi:vim
|
SETUVAR _fish_abbr_vi:vim
|
||||||
SETUVAR fish_color_autosuggestion:4e4e4e
|
SETUVAR fish_color_autosuggestion:4e4e4e
|
||||||
SETUVAR fish_color_cancel:normal
|
SETUVAR fish_color_cancel:normal
|
||||||
SETUVAR fish_color_command:5f87d7
|
SETUVAR fish_color_command:003cb3
|
||||||
SETUVAR fish_color_comment:ff8787
|
SETUVAR fish_color_comment:6600cc
|
||||||
SETUVAR fish_color_cwd:c0b090
|
SETUVAR fish_color_cwd:209060
|
||||||
SETUVAR fish_color_cwd_root:800000
|
SETUVAR fish_color_cwd_root:800000
|
||||||
SETUVAR fish_color_end:afffd7
|
SETUVAR fish_color_end:730099
|
||||||
SETUVAR fish_color_error:ff6060
|
SETUVAR fish_color_error:ff0000
|
||||||
SETUVAR fish_color_escape:00a6b2
|
SETUVAR fish_color_escape:00a6b2
|
||||||
SETUVAR fish_color_history_current:normal
|
SETUVAR fish_color_history_current:normal
|
||||||
SETUVAR fish_color_host:a08080
|
SETUVAR fish_color_host:176945
|
||||||
SETUVAR fish_color_jobs:ffff60
|
SETUVAR fish_color_jobs:ffff00
|
||||||
SETUVAR fish_color_match:normal
|
SETUVAR fish_color_match:normal
|
||||||
SETUVAR fish_color_normal:normal
|
SETUVAR fish_color_normal:normal
|
||||||
SETUVAR fish_color_operator:8fdf3f
|
SETUVAR fish_color_operator:cc33ff
|
||||||
SETUVAR fish_color_param:87afd7
|
SETUVAR fish_color_param:3377ff
|
||||||
SETUVAR fish_color_quote:ffaf5f
|
SETUVAR fish_color_quote:ff751a
|
||||||
SETUVAR fish_color_redirection:f090d0
|
SETUVAR fish_color_redirection:bf4080
|
||||||
SETUVAR fish_color_search_match:ffff00
|
SETUVAR fish_color_search_match:ffff00
|
||||||
SETUVAR fish_color_selection:c0c0c0
|
SETUVAR fish_color_selection:c0c0c0
|
||||||
SETUVAR fish_color_suffix:ffffe0
|
SETUVAR fish_color_suffix:6ddfad
|
||||||
SETUVAR fish_color_user:00ff00
|
SETUVAR fish_color_user:00ff00
|
||||||
SETUVAR fish_color_valid_path:normal
|
SETUVAR fish_color_valid_path:normal
|
||||||
SETUVAR fish_color_vcs:cfffb0
|
SETUVAR fish_color_vcs:43d696
|
||||||
|
SETUVAR fish_color_vcs_braces:29bc7d
|
||||||
SETUVAR fish_greeting:
|
SETUVAR fish_greeting:
|
||||||
SETUVAR fish_key_bindings:hybrid_bindings
|
SETUVAR fish_key_bindings:hybrid_bindings
|
||||||
SETUVAR fish_pager_color_completion:normal
|
SETUVAR fish_pager_color_completion:normal
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# pkgsrc does not like MAKEFLAGS being set
|
# pkgsrc does not like MAKEFLAGS being set
|
||||||
function bmake
|
function bmake
|
||||||
if string match -q -r '/pkgsrc$|/pkgsrc/' $PWD
|
if string match -q -r '/pkgsrc$|/pkgsrc/' $PWD
|
||||||
set -lx MAKEFLAGS
|
env MAKEFLAGS= bmake $argv
|
||||||
|
else
|
||||||
|
command bmake $argv
|
||||||
end
|
end
|
||||||
command bmake $argv
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -11,18 +11,19 @@ function fish_prompt --description 'Write out the prompt'
|
||||||
set suffix '#'
|
set suffix '#'
|
||||||
case '*'
|
case '*'
|
||||||
set color_cwd $fish_color_cwd
|
set color_cwd $fish_color_cwd
|
||||||
set suffix '$'
|
set suffix '>'
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l branch (git symbolic-ref HEAD 2>/dev/null)
|
set -l branch (git symbolic-ref HEAD 2>/dev/null)
|
||||||
set branch (string replace -r "^refs/heads/" "" $branch)
|
set branch (string replace -r "^refs/heads/" "" $branch)
|
||||||
set -l vcs
|
set -l vcs
|
||||||
if test -n "$branch" -a "$branch" != "master"
|
if test -n "$branch" -a "$branch" != "master"
|
||||||
set vcs "($branch)"
|
set vcs (set_color $fish_color_vcs_braces)"(" \
|
||||||
|
(set_color $fish_color_vcs)"$branch" \
|
||||||
|
(set_color $fish_color_vcs_braces)")"
|
||||||
end
|
end
|
||||||
|
|
||||||
echo -n -s (set_color $fish_color_host) (prompt_hostname) ':' \
|
echo -n -s (set_color $fish_color_host) (prompt_hostname) ' ' \
|
||||||
(set_color $color_cwd) (prompt_pwd) \
|
(set_color $color_cwd) (prompt_pwd) (string join "" $vcs) \
|
||||||
(set_color $fish_color_vcs) "$vcs" \
|
|
||||||
(set_color $fish_color_suffix) "$suffix "
|
(set_color $fish_color_suffix) "$suffix "
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
function gpgssh
|
function gpgssh
|
||||||
set -x SSH_AUTH_SOCK $HOME/.gnupg/S.gpg-agent.ssh
|
set -lx SSH_AUTH_SOCK $HOME/.gnupg/S.gpg-agent.ssh
|
||||||
ssh $argv
|
ssh $argv
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue