Skip to content

Commit

Permalink
Merge pull request #57 from BinaryMuse/osx_bashrc_fix
Browse files Browse the repository at this point in the history
Fix install.sh to check for sourcing of .bashrc
  • Loading branch information
Joel Schaerer committed Jul 28, 2011
2 parents 3c67f84 + f1492bb commit 025fdab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ else
# 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.
OS=`uname`
if [ $OS == 'Darwin' -a `grep -c "^[[:space:]]*\(source\|\.\) /etc/profile\(\.d/autojump\.bash\)[[:space:]]*$" ~/.bash_profile` -eq 0 ]; then
if [ $OS == 'Darwin' -a `grep -c "^[[:space:]]*\(source\|\.\) ~/\.bashrc[[:space:]]*$" ~/.bash_profile` -eq 0 ]; then
echo "You are using OSX and your .bash_profile doesn't seem to be sourcing .bashrc"
echo "Adding source ~/.bashrc to your bashrc"
echo -e "\n# Get the aliases and functions" >> ~/.bash_profile
Expand Down

0 comments on commit 025fdab

Please sign in to comment.