47 lines
924 B
Bash
47 lines
924 B
Bash
# add ~/bin & /usr/local/bin to $PATH
|
|
export PATH=$HOME/bin:/usr/local/bin:$PATH
|
|
|
|
# oh-my-zsh related directories
|
|
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
|
|
if [[ ! -d $ZSH_CUSTOM ]]; then
|
|
mkdir -p $ZSH_CUSTOM
|
|
fi
|
|
|
|
# disable automatic updates
|
|
DISABLE_AUTO_UPDATE=true
|
|
|
|
# theme
|
|
ZSH_THEME="ys"
|
|
|
|
# plugins
|
|
plugins=(
|
|
common-aliases
|
|
git
|
|
sudo
|
|
docker
|
|
)
|
|
|
|
# zsh-completions
|
|
autoload -U compinit && compinit
|
|
|
|
# source omz
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
# increase zsh history
|
|
export HISTSIZE=1000000000
|
|
export SAVEHIST=$HISTSIZE
|
|
setopt EXTENDED_HISTORY
|
|
|
|
# reduce linux syscalls
|
|
export TZ=:/etc/localtime
|
|
|
|
# ensure system is aware of browser/editor preference
|
|
export BROWSER="firefox-nightly"
|
|
export EDITOR="nvim"
|