2018-06-15 13:43:04 +00:00
|
|
|
#!/usr/bin/env zsh
|
2018-02-23 09:38:24 +00:00
|
|
|
|
|
|
|
configure_oh_my_zsh() {
|
2018-08-23 12:41:13 +00:00
|
|
|
export ZSH="$DOTFILES_PATH/oh-my-zsh"
|
2018-08-23 09:40:09 +00:00
|
|
|
|
2018-02-23 09:38:24 +00:00
|
|
|
# see https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
|
|
|
export ZSH_THEME="agnoster"
|
|
|
|
|
|
|
|
# use hyphen-insensitive completion (makes `_` and `-` interchangeable)
|
|
|
|
export HYPHEN_INSENSITIVE="true"
|
|
|
|
|
|
|
|
# enable command auto-correction
|
|
|
|
export ENABLE_CORRECTION="true"
|
|
|
|
|
|
|
|
# display red dots while waiting for completion
|
|
|
|
export COMPLETION_WAITING_DOTS="true"
|
|
|
|
|
|
|
|
# disable marking untracked files under VCS as dirty (this makes repository
|
|
|
|
# status check for large repositories faster)
|
|
|
|
export DISABLE_UNTRACKED_FILES_DIRTY="true"
|
|
|
|
|
|
|
|
# command execution time stamp shown in the history
|
|
|
|
export HIST_STAMPS="mm/dd/yyyy"
|
|
|
|
|
|
|
|
# https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins
|
|
|
|
plugins=(
|
|
|
|
git
|
|
|
|
common-aliases
|
|
|
|
extract
|
2018-07-04 20:56:09 +00:00
|
|
|
# zsh-syntax-highlighting
|
2018-02-23 09:38:24 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if is_linux; then
|
|
|
|
plugins+=(command-not-found)
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
configure_oh_my_zsh
|
|
|
|
source "$ZSH/oh-my-zsh.sh"
|