2018-11-10 14:55:37 +00:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
configure_oh_my_zsh() {
|
2018-12-03 08:27:28 +00:00
|
|
|
# disable automatic updates because OMZ is managed by zgen
|
|
|
|
DISABLE_AUTO_UPDATE="true"
|
|
|
|
|
2018-11-10 14:55:37 +00:00
|
|
|
# use hyphen-insensitive completion (makes `_` and `-` interchangeable)
|
|
|
|
HYPHEN_INSENSITIVE="true"
|
|
|
|
|
|
|
|
# enable command auto-correction
|
|
|
|
ENABLE_CORRECTION="true"
|
|
|
|
|
|
|
|
# display red dots while waiting for completion
|
|
|
|
COMPLETION_WAITING_DOTS="true"
|
|
|
|
|
|
|
|
# disable marking untracked files under VCS as dirty (this makes repository
|
|
|
|
# status check for large repositories faster)
|
|
|
|
DISABLE_UNTRACKED_FILES_DIRTY="true"
|
|
|
|
|
|
|
|
# command execution time stamp shown in the history
|
|
|
|
HIST_STAMPS="mm/dd/yyyy"
|
|
|
|
}
|
|
|
|
|
|
|
|
configure_syntax_highlighting() {
|
|
|
|
FAST_WORK_DIR="$DOTFILES_PATH/cache"
|
|
|
|
}
|
|
|
|
|
|
|
|
configure_oh_my_zsh
|
|
|
|
configure_syntax_highlighting
|
|
|
|
|
|
|
|
source "$DOTFILES_PATH/zgen/zgen.zsh"
|
|
|
|
|
|
|
|
if ! zgen saved; then
|
|
|
|
zgen oh-my-zsh
|
|
|
|
|
|
|
|
zgen oh-my-zsh plugins/git
|
|
|
|
zgen oh-my-zsh plugins/extract
|
|
|
|
zgen oh-my-zsh plugins/fasd
|
|
|
|
is_linux && zgen oh-my-zsh plugins/command-not-found
|
|
|
|
|
|
|
|
zgen load zdharma/fast-syntax-highlighting
|
|
|
|
|
2018-11-21 13:52:11 +00:00
|
|
|
# official agnoster theme is much faster than one bundled with OMZ and has
|
|
|
|
# more features
|
|
|
|
zgen load agnoster/agnoster-zsh-theme agnoster
|
2018-11-10 14:55:37 +00:00
|
|
|
|
|
|
|
zgen save
|
|
|
|
fi
|
2018-11-21 13:52:11 +00:00
|
|
|
|
|
|
|
# fix prompt theme
|
|
|
|
PLUSMINUS="$PLUSMINUS "
|