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).
pull/501/head
Mahmoud Al-Qudsi 7 years ago
parent b06d686bfe
commit df25a4e833

@ -161,7 +161,7 @@ def show_post_installation_message(etc_dir, share_dir, bin_dir):
else:
if get_shell() == 'fish':
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'
else:
aj_shell = '%s/autojump.sh' % etc_dir

Loading…
Cancel
Save