dotfiles/zsh/zshrc

52 lines
1.2 KiB
Bash

# Exports
export ZSH=${HOME}/dotfiles/lib/ohmyzsh
ZSH_THEME="mortalscumbag"
DISABLE_AUTO_UPDATE="true"
export GOPATH=${HOME}/go
export PATH="${GOPATH}/bin:${HOME}/.gem/ruby/2.3.0/bin:${HOME}/dotfiles/lib/util:${HOME}/dotfiles/lib/bin:${HOME}/dotfiles/lib/dasht/bin:${PATH}:/opt/android-sdk/build-tools/26.0.0/"
export DASHT_DOCSETS_DIR=$HOME/.local/share/Zeal/Zeal/docsets
export EDITOR='nano'
export TERM=linux
# Plugins
plugins=(gem bundler git vagrant docker python ansible)
plugins+=(systemd systemadmin tmux command-not-found extract)
case $(uname -n) in
"megumi")
plugins+=(archlinux)
;;
"sayaka")
plugins+=(archlinux)
;;
"git")
plugins+=(debian)
;;
"test")
plugins+=(debian)
;;
esac
# OMZ
source ${ZSH}/oh-my-zsh.sh
# Fix MobaXterm Home/End key with ZSH
bindkey '^[[H' beginning-of-line
bindkey '^[[F' end-of-line
# Syntax Highlighting
source ${HOME}/dotfiles/lib/highlighting/zsh-syntax-highlighting.zsh
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
# Aliases
for file in ${HOME}/dotfiles/zsh/aliases.d/*.zsh; do
source $file
done
# FZF
[ -f ${HOME}/.fzf.zsh ] && source ${HOME}/.fzf.zsh
# Dircolors
eval `dircolors ${HOME}/dotfiles/zsh/dircolors`
# Completions Path
fpath=(${HOME}/dotfiles/lib/completions/src $fpath)