If autojump can't find the directory, attempt a cd

pull/366/head
David Frascone 9 years ago
parent f09d23e30d
commit 55f4eacc8a

@ -49,6 +49,10 @@ function j
autojump $argv
case '*'
set -l output (autojump $argv)
# Check for . and attempt a regular cd
if [ $output = "." ]
cd $argv
else
if test -d "$output"
set_color red
echo $output
@ -61,6 +65,7 @@ function j
end
end
end
end
# jump to child directory (subdirectory of current path)

Loading…
Cancel
Save