From ba75ec2366532bef78ab1ead61ddcfb6f67badd2 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Thu, 26 Aug 2021 10:44:38 -0600 Subject: [PATCH] more fish stuff --- fish.configlink/functions/abbrs.fish | 1 + fish.configlink/functions/fish_user_key_bindings.fish | 2 ++ fish.configlink/functions/prj.fish | 1 + 3 files changed, 4 insertions(+) diff --git a/fish.configlink/functions/abbrs.fish b/fish.configlink/functions/abbrs.fish index c2c3276..d55979e 100644 --- a/fish.configlink/functions/abbrs.fish +++ b/fish.configlink/functions/abbrs.fish @@ -73,6 +73,7 @@ function abbrs --description 'All abbreviations' # Improved CLI Tools abbr -a cat 'bat' # Swap cat with bat abbr -a h 'http -Fh --all' # Curl site for headers + abbr -a j 'just' # Fun CLI Tools abbr goo 'googler' diff --git a/fish.configlink/functions/fish_user_key_bindings.fish b/fish.configlink/functions/fish_user_key_bindings.fish index e9443e4..9852c3b 100644 --- a/fish.configlink/functions/fish_user_key_bindings.fish +++ b/fish.configlink/functions/fish_user_key_bindings.fish @@ -5,6 +5,8 @@ function fish_user_key_bindings bind -M insert \ce 'recent' bind -M insert \cg 'commandline-git-commits' bind -M insert \cf 'fcd' + bind -M insert \cp 'prj' + bind -M default \cp 'prj' bind -M insert \x1F accept-autosuggestion bind -M default \x1F accept-autosuggestion end diff --git a/fish.configlink/functions/prj.fish b/fish.configlink/functions/prj.fish index 6efcf72..a19bb37 100644 --- a/fish.configlink/functions/prj.fish +++ b/fish.configlink/functions/prj.fish @@ -1,4 +1,5 @@ function prj --description "cd to a project" set projdir (ls $PROJ | fzf) and cd $PROJ/$projdir + and commandline -f execute end