Minor style changes to prompt and sync

This commit is contained in:
Mitchell Simon 2019-09-08 15:25:04 -04:00
parent 7bbb9426aa
commit c385455dd5
3 changed files with 5 additions and 9 deletions

View File

@ -20,7 +20,7 @@ function fish_prompt --description 'Write out the prompt'
# Set jobs num, based on exit code of jobs command # Set jobs num, based on exit code of jobs command
if jobs > /dev/null if jobs > /dev/null
set -l jobs_out (jobs -c) set -l jobs_out (jobs -c)
set jobs_num '[' (set_color brblack) (count $jobs_out) (set_color normal) '] ' set jobs_num '[' (set_color grey) (count $jobs_out) (set_color normal) '] '
end end
# Set cwd color and prompt suffix, based on current user and fish_bind_mode. # Set cwd color and prompt suffix, based on current user and fish_bind_mode.
@ -47,16 +47,16 @@ function fish_prompt --description 'Write out the prompt'
case '*' case '*'
set color_cwd $fish_color_cwd set color_cwd $fish_color_cwd
set suffix '~~>' set suffix '$~>'
if test $fish_key_bindings = 'fish_vi_key_bindings' if test $fish_key_bindings = 'fish_vi_key_bindings'
switch "$fish_bind_mode" switch "$fish_bind_mode"
case 'insert' case 'insert'
set suffix (set_color brblue) $suffix (set_color normal) set suffix (set_color brblue) $suffix (set_color normal)
case 'default' case 'default'
set suffix '<~>' set suffix '<$>'
case 'visual' case 'visual'
set suffix (set_color bryellow) '<~~' (set_color normal) set suffix (set_color bryellow) '<~$' (set_color normal)
end end
end end
end end

View File

@ -1,4 +0,0 @@
function vs
vi (ag -l $argv)
end

2
sync
View File

@ -2,7 +2,7 @@
echo 'Syncing configuration files to your home dir...' echo 'Syncing configuration files to your home dir...'
set_color brgrey set_color grey
set -l fwd (pwd) set -l fwd (pwd)
set -l cwd (string match -r '\w+$' $fwd) set -l cwd (string match -r '\w+$' $fwd)