Skip to content

Instantly share code, notes, and snippets.

@fakefarm
Created November 26, 2014 00:31
Show Gist options
  • Save fakefarm/4a6b78afee07dd7e5fe1 to your computer and use it in GitHub Desktop.
Save fakefarm/4a6b78afee07dd7e5fe1 to your computer and use it in GitHub Desktop.
bash things
# make a command and come back to same directory
(cd foo/; git pull origin master; rm -rf .bundle; bundle)
# iterate over items and do something with them.
for i in payments accounts deals promotions
do
cd ~/Code/$i
rm -rf .bundle
git pull origin master
bundle
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment