Skip to content

Instantly share code, notes, and snippets.

@mbauhardt
Created March 12, 2013 21:59
Show Gist options
  • Select an option

  • Save mbauhardt/5147478 to your computer and use it in GitHub Desktop.

Select an option

Save mbauhardt/5147478 to your computer and use it in GitHub Desktop.
Zsh file to configure my ohmyzsh installation
function cloneGit {
local folder=$1
local url=$2
if [ ! -d "$folder" ]
then
git clone $url $folder
fi
}
function enableCustomTheme {
local theme=$1
if [ "$ZSH_THEME" = "" ]
then
source $ZSH_CUSTOM/themes/$theme/$theme.zsh-theme
fi
}
cloneGit $ZSH_CUSTOM/plugins/copyfile https://gist.github.com/5137374.git
cloneGit $ZSH_CUSTOM/plugins/copydir https://gist.github.com/5136994.git
cloneGit $ZSH_CUSTOM/plugins/antw https://gist.github.com/5136962.git
cloneGit $ZSH_CUSTOM/plugins/zsh-syntax-highlighting git://github.com/zsh-users/zsh-syntax-highlighting.git
cloneGit $ZSH_CUSTOM/themes/agnoster-mbauhardt https://gist.github.com/3806415.git
enableCustomTheme agnoster-mbauhardt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment