dotfiles

Author: Kyle Fuller <kyle@fuller.li> 2016-12-13 02:02:50 +0000 +0000
Committer: Kyle Fuller <kyle@fuller.li> 2016-12-13 02:02:50 +0000 +0000
Commit: 5f8104ac06dc55ca8599b9e77fdd75ffbea3a6ab
Parent: 55a730d76ad7b4fd4c2380899eb7a241ba3e6e8f


feat: Add script to jump project
diff --git a/.config/fish/functions/p.fish b/.config/fish/functions/p.fish
new file mode 100644
index 0000000000000000000000000000000000000000..a7b3781e543f3b8069e2bb3b93e66f4a52d4a44e
--- /dev/null
+++ b/.config/fish/functions/p.fish
@@ -0,0 +1,5 @@
+function p
+  # Jump into a selected project from `~/Projects`
+  find ~/Projects -type d -maxdepth 2 -depth 2 -print | cut -d '/' -f5,6 | fzf > $TMPDIR/fzfp.result
+  cd ~/Projects/(cat $TMPDIR/fzfp.result)
+end