more fish stuff

This commit is contained in:
Noah Masur 2021-08-26 10:44:38 -06:00
parent bb00648208
commit ba75ec2366
3 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,7 @@ function abbrs --description 'All abbreviations'
# Improved CLI Tools # Improved CLI Tools
abbr -a cat 'bat' # Swap cat with bat abbr -a cat 'bat' # Swap cat with bat
abbr -a h 'http -Fh --all' # Curl site for headers abbr -a h 'http -Fh --all' # Curl site for headers
abbr -a j 'just'
# Fun CLI Tools # Fun CLI Tools
abbr goo 'googler' abbr goo 'googler'

View File

@ -5,6 +5,8 @@ function fish_user_key_bindings
bind -M insert \ce 'recent' bind -M insert \ce 'recent'
bind -M insert \cg 'commandline-git-commits' bind -M insert \cg 'commandline-git-commits'
bind -M insert \cf 'fcd' bind -M insert \cf 'fcd'
bind -M insert \cp 'prj'
bind -M default \cp 'prj'
bind -M insert \x1F accept-autosuggestion bind -M insert \x1F accept-autosuggestion
bind -M default \x1F accept-autosuggestion bind -M default \x1F accept-autosuggestion
end end

View File

@ -1,4 +1,5 @@
function prj --description "cd to a project" function prj --description "cd to a project"
set projdir (ls $PROJ | fzf) set projdir (ls $PROJ | fzf)
and cd $PROJ/$projdir and cd $PROJ/$projdir
and commandline -f execute
end end