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`'