summaryrefslogtreecommitdiff
path: root/config/essentials/shell/functions.sh
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-09-22 20:18:40 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-09-22 20:18:40 +0200
commitf0fafea246dbecaf2cd80fc191f422215cf729f8 (patch)
treeb45a2194a6a8759e621a7c1cecd250f6094d5dee /config/essentials/shell/functions.sh
parentc60ce995afab75aaeab193357bb76510ea7a725d (diff)
checkpoint
Diffstat (limited to 'config/essentials/shell/functions.sh')
-rw-r--r--config/essentials/shell/functions.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh
index 9e12715..cf10365 100644
--- a/config/essentials/shell/functions.sh
+++ b/config/essentials/shell/functions.sh
@@ -341,3 +341,10 @@ ffconcat () {
rm $tmp
}
nvim_bindings() { "$(tmp="$(mktemp)"; nvim +":set nomore | :redir! > $tmp | :map | :redir END | :q" ; fzf < "$tmp"; rm "$tmp")"; }
+
+prj () {
+ pfx="$HOME/proj"
+ d="$(find "$pfx" -mindepth 1 -maxdepth 1 -type d | sed "s@$pfx@@" |fzf)"
+ [ -d "$d" ] || exit 1
+ cd "$pfx"/"$d"
+}