Skip to content

Instantly share code, notes, and snippets.

@suderman
Created August 24, 2011 06:12
Show Gist options
  • Save suderman/1167404 to your computer and use it in GitHub Desktop.
Save suderman/1167404 to your computer and use it in GitHub Desktop.
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