mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
print correct shell rc file for Mac bash users
This commit is contained in:
parent
c7c8bceac9
commit
8ad3c5aefd
@ -5,6 +5,7 @@ from __future__ import print_function
|
||||
|
||||
from argparse import ArgumentParser
|
||||
import os
|
||||
import platform
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
@ -103,8 +104,12 @@ def parse_arguments():
|
||||
|
||||
|
||||
def print_post_installation_message(etc_dir):
|
||||
aj_shell = '%s/autojump.sh' % etc_dir
|
||||
if platform.system() == 'Darwin' and get_shell == 'bash':
|
||||
rcfile = '~/.profile'
|
||||
else:
|
||||
rcfile = '~/.%src' % get_shell()
|
||||
aj_shell = '%s/autojump.%s' % (etc_dir, get_shell())
|
||||
|
||||
print("\nPlease manually add the following line to %s:\n" % rcfile)
|
||||
print("\t[[ -s %s ]] && source %s\n" % (aj_shell, aj_shell))
|
||||
print("Please restart terminal(s) before running autojump.\n")
|
||||
|
Loading…
Reference in New Issue
Block a user