mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Open EDITOR if output of autojump is a file
This commit is contained in:
parent
cea75c27fe
commit
73694897c3
@ -67,6 +67,8 @@ j() {
|
||||
echo -e "${output}"
|
||||
fi
|
||||
cd "${output}"
|
||||
elif [[ -f "${output}" ]]; then
|
||||
$EDITOR "${output}"
|
||||
else
|
||||
echo "autojump: directory '${@}' not found"
|
||||
echo "\n${output}\n"
|
||||
|
@ -61,6 +61,8 @@ j() {
|
||||
echo -e "${output}"
|
||||
fi
|
||||
cd "${output}"
|
||||
elif [[ -f "${output}" ]]; then
|
||||
$EDITOR "${output}"
|
||||
else
|
||||
echo "autojump: directory '${@}' not found"
|
||||
echo "\n${output}\n"
|
||||
|
Loading…
Reference in New Issue
Block a user