# [[ -f /etc/zsh/zpreztorc ]] && source /etc/zsh/zpreztorc

zstyle ':prezto:load' pmodule 'terminal'

# [[ -f $HOME/.zprezto/runcoms/zpreztorc ]] && source $HOME/.zprezto/runcoms/zpreztorc

export NVM_DIR=/usr/share/nvm

if [[ "Darwin" = "$(uname)" ]]
then
	zstyle ':prezto:load' pmodule 'osx' 'homebrew'
fi

if [[ -f /etc/lsb-release ]]
then
	source /etc/lsb-release
	if [[ "$DISTRIB_ID" = "Arch" ]]
	then
		zstyle ':prezto:load' pmodule 'pacman'
	fi
fi

zstyle ':prezto:load' pmodule \
       'archive' \
       'environment' \
       'editor' \
       'history' \
       'directory' \
       'helper' \
       'spectrum' \
       'git' \
       'terminal' \
       'syntax-highlighting' \
       'utility' \
       'docker' \
       'ssh' \
       'autosuggestions' \
       'command-not-found' \
       'completion' \
       'kubernetes' \
       'direnv' \
       'zoxide' \
       'history-substring-search' \
       'prompt'

#        'syntax-highlighting' \
## should be before history-substring-search
#        'autosuggestions' \
#        'python' \
#        'ssh' \
#        'homebrew' \
# 'wakeonlan' 'syntax-highlighting' 'history-substring-search' 'prompt' 'homebrew' 'pacman' 'spectrum'

# zstyle ':prezto:load' pmodule   'archive'   'command-not-found'   'completion'   'directory'   'editor'   'environment'  'git'   'history'   'pacman'   'spectrum'   'ssh'   'terminal'   'tmux'   'utility'   'wakeonlan'   'syntax-highlighting'   'history-substring-search'   'prompt' 'homebrew'

zstyle ':prezto:*:*' color 'yes'

# source /usr/lib/prezto/runcoms/zpreztorc
zstyle ':prezto:module:editor' key-bindings 'emacs'

# Auto convert .... to ../..
zstyle ':prezto:module:editor' dot-expansion 'yes'
zstyle ':prezto:module:editor' ps-context 'yes'

zstyle ':prezto:module:prompt' theme 'moot'

zstyle ':prezto:module:prompt' show-return-val 'yes'

zstyle ':prezto:module:utility:ls' dirs-first 'no'

zstyle ':prezto:module:git:alias' skip 'yes'

# zstyle ':prezto:module:gnu-utility' prefix 'g'

# zstyle ':prezto:module:osx:man' dash-keyword 'manpages'

zstyle ':prezto:module:python:virtualenv' auto-switch 'yes'

zstyle ':prezto:module:python:virtualenv' initialize 'yes'

zstyle ':prezto:module:tmux:auto-start' local 'no'

# zstyle ':prezto:module:tmux:auto-start' local 'no'
zstyle ':prezto:module:tmux:auto-start' remote 'no'

zstyle ':prezto:module:utility' safe-ops 'yes'
