summaryrefslogtreecommitdiffstats
path: root/extra/hunter_cd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extra/hunter_cd.sh')
-rw-r--r--extra/hunter_cd.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/extra/hunter_cd.sh b/extra/hunter_cd.sh
new file mode 100644
index 0000000..6d73be1
--- /dev/null
+++ b/extra/hunter_cd.sh
@@ -0,0 +1,6 @@
+function hunter() {
+ env hunter
+ test -e ~/.hunter_cwd &&
+ source ~/.hunter_cwd &&
+ rm ~/.hunter_cwd && cd $HUNTER_CWD
+}