Skip to content

Commit

Permalink
Symlink to ~/.scm_breeze if not installing to that path
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Jan 17, 2012
1 parent 3ad6daa commit 38832c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install.sh
@@ -1,6 +1,12 @@
#!/bin/sh
#locate the dir where this script is stored
export scmbDir="$( cd -P "$( dirname "$0" )" && pwd )"

# Symlink to ~/.scm_breeze if installing from another path
if [ "$scmbDir" != "$HOME/.scm_breeze" ]; then
ln -fs "$scmbDir" "$HOME/.scm_breeze"
fi

# This loads SCM Breeze into the shell session.
exec_string="[ -s \"$scmbDir/scm_breeze.sh\" ] && . \"$scmbDir/scm_breeze.sh\""

Expand All @@ -19,4 +25,3 @@ _create_or_patch_scmbrc


echo "== Run 'source ~/.bashrc' or 'source ~/.zshrc' to load SCM Breeze into your current shell."

0 comments on commit 38832c7

Please sign in to comment.