mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 20:25:38 +00:00
more fish stuff
This commit is contained in:
parent
bb00648208
commit
ba75ec2366
@ -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'
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user