Skip to content

Commit

Permalink
create bash_profile if not exist when run on mac osx
Browse files Browse the repository at this point in the history
  • Loading branch information
kodango committed Sep 5, 2013
1 parent 5a4c39a commit 08e3f85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install_markrc.sh
Expand Up @@ -2,6 +2,11 @@

cp markrc ~/.markrc

# If os is Mac OSX, create .bash_profile if not exist
if [ "$(uname)" = "Darwin" ]; then
touch ~/.bash_profile
fi

if [ -f ~/.bash_profile ]; then
if ! grep -sq markrc ~/.bash_profile; then
echo '[ -f ~/.markrc ] && source ~/.markrc' >> ~/.bash_profile
Expand Down

0 comments on commit 08e3f85

Please sign in to comment.