My personal oh-my-zsh custom directory ($ZSH_CUSTOM
) for ZSH shell happiness.
Install oh-my-zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
You can replace the oh-my-zsh $ZSH_CUSTOM directory (~/.oh-my-zsh/custom)
# be sure to install oh-my-zsh first
export ZSH_CUSTOM="${ZSH_CUSTOM:-~/.oh-my-zsh/custom}"
rm -rfi "$ZSH_CUSTOM"
git clone [email protected]:mattmc3/zsh_custom.git "$ZSH_CUSTOM"
Or, you can make a new one:
# Edit your ~/.zshrc and add this line, replacing any existing ZSH_CUSTOM
export ZSH_CUSTOM="~/path/to/my/zsh_custom"
# Reload zsh and clone to the folder
source ~/.zshrc
git clone [email protected]:mattmc3/zsh_custom.git "$ZSH_CUSTOM"
Per oh-my-zsh docs:
You can put files here to add functionality separated per file, which will be ignored by git. Files on the custom/ directory will be automatically loaded by the init script, in alphabetical order. For example: add yourself some shortcuts to projects you often work on.
brainstormr=~/Projects/development/planetargon/brainstormr
cd $brainstormr
Custom plugins go in the plugins folder. Oh-my-zsh allows overriding its plugins or making new ones.
External plugins are as simple as doing a git clone --depth 1
. A script for
downloading my favorite ones is in the bin/clone_plugins.sh script.
$ZSH_CUSTOM/bin/clone_plugins.sh
Custom themes go in the themes folder.