mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
parent
c0301c7cee
commit
4c28a998b4
@ -105,13 +105,18 @@ def parse_arguments():
|
|||||||
|
|
||||||
def print_post_installation_message(etc_dir):
|
def print_post_installation_message(etc_dir):
|
||||||
aj_shell = '%s/autojump.sh' % etc_dir
|
aj_shell = '%s/autojump.sh' % etc_dir
|
||||||
if platform.system() == 'Darwin' and get_shell == 'bash':
|
source_msg = "\t[[ -s %s ]] && source %s\n" % (aj_shell, aj_shell)
|
||||||
|
|
||||||
|
if get_shell() == 'fish':
|
||||||
|
rcfile = '~/.config/fish/config.fish'
|
||||||
|
source_msg = "if test -f %s; . %s; end" % (aj_shell, aj_shell)
|
||||||
|
elif platform.system() == 'Darwin' and get_shell() == 'bash':
|
||||||
rcfile = '~/.profile'
|
rcfile = '~/.profile'
|
||||||
else:
|
else:
|
||||||
rcfile = '~/.%src' % get_shell()
|
rcfile = '~/.%src' % get_shell()
|
||||||
|
|
||||||
print("\nPlease manually add the following line to %s:\n" % rcfile)
|
print("\nPlease manually add the following line to %s:\n" % rcfile)
|
||||||
print("\t[[ -s %s ]] && source %s\n" % (aj_shell, aj_shell))
|
print(source_msg)
|
||||||
print("Please restart terminal(s) before running autojump.\n")
|
print("Please restart terminal(s) before running autojump.\n")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user