mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
try to fix OS X install
This commit is contained in:
parent
c41771e2f2
commit
00ce1696a7
@ -80,7 +80,7 @@ else
|
|||||||
# Makes the assumption that if they have a line: source ~/.bashrc or . ~/.bashrc, that
|
# Makes the assumption that if they have a line: source ~/.bashrc or . ~/.bashrc, that
|
||||||
# .bashrc has been properly sourced and you don't need to add it.
|
# .bashrc has been properly sourced and you don't need to add it.
|
||||||
OS=`uname`
|
OS=`uname`
|
||||||
if [ $OS == 'Darwin' -a `grep -c "^[[:space:]]*\(source\|\.\) ~/\.bashrc[[:space:]]*$" ~/.bash_profile` -eq 0 ]; then
|
if [ $OS == 'Darwin' -a x`grep -c "^[[:space:]]*\(source\|\.\) ~/\.bashrc[[:space:]]*$" ~/.bash_profile` == x0 ]; then
|
||||||
echo "You are using OSX and your .bash_profile doesn't seem to be sourcing .bashrc"
|
echo "You are using OSX and your .bash_profile doesn't seem to be sourcing .bashrc"
|
||||||
echo "Adding source ~/.bashrc to your bashrc"
|
echo "Adding source ~/.bashrc to your bashrc"
|
||||||
echo -e "\n# Get the aliases and functions" >> ~/.bash_profile
|
echo -e "\n# Get the aliases and functions" >> ~/.bash_profile
|
||||||
|
Loading…
Reference in New Issue
Block a user