1
0
mirror of https://github.com/wting/autojump synced 2025-06-08 02:14:07 +00:00
This commit is contained in:
Ashwin V. Mohanan 2025-03-23 22:27:39 +00:00 committed by GitHub
commit 6894c8965e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 6 deletions

View File

@ -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"

View File

@ -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"

View File

@ -37,6 +37,7 @@ def modify_autojump_sh(etc_dir, share_dir, dryrun=False):
\n source %s/autojump.${shell} \
\nfi\n' % (share_dir, share_dir)
if not dryrun:
with open(os.path.join(etc_dir, 'autojump.sh'), 'a') as f:
f.write(custom_install)
@ -48,6 +49,7 @@ def modify_autojump_lua(clink_dir, bin_dir, dryrun=False):
'\\\\',
)
clink_file = os.path.join(clink_dir, 'autojump.lua')
if not dryrun:
with open(clink_file, 'r') as f:
original = f.read()
with open(clink_file, 'w') as f: