Created
August 24, 2011 06:12
-
-
Save suderman/1167404 to your computer and use it in GitHub Desktop.
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
if [ ! -d "$HOME/.oh-my-zsh" ]; then | |
git clone git://github.com/robbyrussell/oh-my-zsh.git "$HOME/.oh-my-zsh" | |
cd "$HOME/.oh-my-zsh" | |
grep -v '!custom' "$HOME/.oh-my-zsh/.gitignore" > "$HOME/.oh-my-zsh/.gitignore.tmp" | |
echo "custom" >> "$HOME/.oh-my-zsh/.gitignore.tmp" | |
rm -f "$HOME/.oh-my-zsh/.gitignore" | |
mv "$HOME/.oh-my-zsh/.gitignore.tmp" "$HOME/.oh-my-zsh/.gitignore" | |
git add .gitignore | |
git rm custom/example.zsh | |
git rm custom/example/example.plugin.zsh | |
git commit -m 'Ignore custom directory' | |
cd - | |
echo "Installed oh-my-zsh" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment