Open EDITOR if output of autojump is a file

pull/579/head
Ashwin Vishnu 5 years ago
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…
Cancel
Save