mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
If autojump can't find the directory, attempt a cd
This commit is contained in:
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
|
||||
@ -60,6 +64,7 @@ function j
|
||||
__aj_err "Try `autojump --help` for more information."
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user