refactor(zsh): update zshrc to account for system-wide omz install
This commit is contained in:
parent
19e6684e9a
commit
008c964eba
1 changed files with 16 additions and 5 deletions
21
zsh/.zshrc
21
zsh/.zshrc
|
@ -1,15 +1,26 @@
|
||||||
# add ~/bin & /usr/local/bin to $PATH
|
# add ~/bin & /usr/local/bin to $PATH
|
||||||
export PATH=$HOME/bin:/usr/local/bin:$PATH
|
export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
# location of oh-my-zsh installation
|
# oh-my-zsh related directories
|
||||||
export ZSH=$HOME/.oh-my-zsh
|
export ZSH=/usr/share/oh-my-zsh
|
||||||
|
export ZSH_CACHE_DIR=$XDG_CACHE_HOME/oh-my-zsh
|
||||||
|
export ZSH_CUSTOM=$XDG_CONFIG_HOME/oh-my-zsh/custom
|
||||||
|
|
||||||
|
# create cache & plugin directories if they don't exist
|
||||||
|
if [[ ! -d $ZSH_CACHE_DIR ]]; then
|
||||||
|
mkdir -p $ZSH_CACHE_DIR
|
||||||
|
fi
|
||||||
|
# Custom plugins
|
||||||
|
if [[ ! -d $ZSH_CUSTOM ]]; then
|
||||||
|
mkdir -p $ZSH_CUSTOM
|
||||||
|
fi
|
||||||
|
|
||||||
|
# disable automatic updates
|
||||||
|
DISABLE_AUTO_UPDATE=true
|
||||||
|
|
||||||
# theme
|
# theme
|
||||||
ZSH_THEME="ys"
|
ZSH_THEME="ys"
|
||||||
|
|
||||||
# automatically update oh-my-zsh without being prompted
|
|
||||||
DISABLE_UPDATE_PROMPT=true
|
|
||||||
|
|
||||||
# plugins
|
# plugins
|
||||||
plugins=(
|
plugins=(
|
||||||
common-aliases
|
common-aliases
|
||||||
|
|
Loading…
Reference in a new issue