dotfiles/config/zsh/zshrc

33 lines
1.2 KiB
Bash

# Exports
export DOTFILES="${HOME}/dotfiles"
export DOTFILES_CONFIG="${DOTFILES}/config"
export LIB="${DOTFILES}/lib"
export ZSH="${LIB}/ohmyzsh"
export PATH="${HOME}/dotfiles/bin:/opt/android-sdk/build-tools/26.0.0/:${PATH}"
export EDITOR='nano'
export TERM=linux
fpath=(${LIB}/completions/src $fpath)
# Settings
ZSH_THEME="mortalscumbag"
DISABLE_AUTO_UPDATE="true"
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
# Plugins
plugins=(git vagrant docker systemd tmux command-not-found extract)
case $(uname -n) in
"megumi") plugins+=(archlinux) ;;
"sayaka") plugins+=(archlinux) ;;
"git") plugins+=(debian) ;;
esac
# Fix MobaXterm Home/End key with ZSH
bindkey '^[[H' beginning-of-line
bindkey '^[[F' end-of-line
# Source the needed parts
source ${ZSH}/oh-my-zsh.sh # Oh My ZSH
source ${LIB}/highlighting/zsh-syntax-highlighting.zsh # Syntax Highlighting
for file in ${DOTFILES_CONFIG}/zsh/zshrc.d/*.zsh; do source $file; done # Other Files
source ${HOME}/.fzf.zsh # FZF
eval `dircolors ${DOTFILES_CONFIG}/dir/dircolors` # Dircolors