Permalink
Browse files

Print commands as they execute

  • Loading branch information...
1 parent d83acaa commit 1dfb555921d5191958bf1e32e486d88a1fc2c303 @croaky croaky committed Apr 9, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 mac
View
7 mac
@@ -7,6 +7,9 @@ successfully() {
echo "Fixing OSX zsh environment bug ..."
successfully sudo mv /etc/{zshenv,zshrc}
+echo "Setting shell to print commands as they execute ..."
+set -x
+
echo "Fixing permissions ..."
successfully sudo mkdir -p /usr/local
successfully sudo chown -R `whoami` /usr/local
@@ -62,6 +65,7 @@ echo "Installing rbenv for changing Ruby versions ..."
echo "Restarting shell as a login shell so path changes take effect to begin using rbenv ..."
exec $SHELL -l
+ set -x
echo "Installing rbenv-gem-rehash so the shell automatically picks up binaries after installing gems with binaries..."
successfully brew install rbenv-gem-rehash
@@ -90,3 +94,6 @@ echo "Installing Heroku CLI client ..."
echo "Installing the heroku-config plugin for pulling config variables locally to be used as ENV variables ..."
successfully heroku plugins:install git://github.com/ddollar/heroku-config.git
+
+echo "Setting shell back to normal; don't print future commands as they execute ..."
+set +x

0 comments on commit 1dfb555

Please sign in to comment.