mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +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:
parent
b06d686bfe
commit
df25a4e833
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user