1
0
mirror of https://github.com/wting/autojump synced 2024-09-28 14:00:46 +00:00

Fix fish installation on fish 3.x

fish has dropped the . command from fish 3.x (and it has been deprecated
in 2.x for a long time). autojump should use `source` instead `.` (no
other change is needed).
This commit is contained in:
Mahmoud Al-Qudsi 2017-09-14 14:48:00 -05:00
parent b06d686bfe
commit df25a4e833

View File

@ -161,7 +161,7 @@ def show_post_installation_message(etc_dir, share_dir, bin_dir):
else: else:
if get_shell() == 'fish': if get_shell() == 'fish':
aj_shell = '%s/autojump.fish' % share_dir aj_shell = '%s/autojump.fish' % share_dir
source_msg = 'if test -f %s; . %s; end' % (aj_shell, aj_shell) source_msg = 'if test -f %s; source %s; end' % (aj_shell, aj_shell)
rcfile = '~/.config/fish/config.fish' rcfile = '~/.config/fish/config.fish'
else: else:
aj_shell = '%s/autojump.sh' % etc_dir aj_shell = '%s/autojump.sh' % etc_dir