From 903f79333a6899e57d2b3e791a3e49f6f6b5b1a8 Mon Sep 17 00:00:00 2001 From: Johnny Kuan Date: Sun, 4 May 2014 02:58:23 -0400 Subject: [PATCH 1/2] minimal tcsh support --- bin/autojump.tcsh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bin/autojump.tcsh diff --git a/bin/autojump.tcsh b/bin/autojump.tcsh new file mode 100644 index 0000000..5e1f78f --- /dev/null +++ b/bin/autojump.tcsh @@ -0,0 +1,12 @@ +# set user installation paths +if (-d ~/.autojump/bin) then + set path = (~/.autojump/bin path) +endif + +# prepend autojump to cwdcmd (run after every change of working directory) +if (`alias cwdcmd` !~ *autojump*) then + alias cwdcmd 'autojump --add $cwd >/dev/null;' `alias cwdcmd` +endif + +#default autojump command +alias j 'cd `autojump \!:1`' From 225cdb2a8be839055c89c750316bf0020171c6b8 Mon Sep 17 00:00:00 2001 From: Johnny Kuan Date: Mon, 5 May 2014 02:50:51 -0400 Subject: [PATCH 2/2] fix to allow directories starting with hyphens --- bin/autojump.tcsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/autojump.tcsh b/bin/autojump.tcsh index 5e1f78f..a520be0 100644 --- a/bin/autojump.tcsh +++ b/bin/autojump.tcsh @@ -9,4 +9,4 @@ if (`alias cwdcmd` !~ *autojump*) then endif #default autojump command -alias j 'cd `autojump \!:1`' +alias j 'cd `autojump -- \!:1`'