Created
November 26, 2014 00:31
-
-
Save fakefarm/4a6b78afee07dd7e5fe1 to your computer and use it in GitHub Desktop.
bash things
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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