dotfiles/zsh/zshrc
2017-07-19 18:22:14 +02:00

47 lines
1.2 KiB
Bash

# Exports & Completionpath
export DOT=${HOME}/dotfiles OWN=${DOT}/zsh LIB=${DOT}/lib OMZ=${LIB}/ohmyzsh ZSH=${OMZ}
export ZUL=${LIB}/zulu ZULU_DIR=${ZUL} ZUC=${ZUL}/config ZULU_CONFIG_DIR=${ZUC}
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)
# Fix MobaXterm Home/End key with ZSH
bindkey '^[[H' beginning-of-line
bindkey '^[[F' end-of-line
# Settings & Dircolors
ZSH_THEME="mortalscumbag"
DISABLE_AUTO_UPDATE="true"
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
eval `dircolors ${OWN}/dircolors`
# Plugins
plugins=(git vagrant docker python ansible extract systemd systemadmin tmux command-not-found)
case $(uname -n) in
"megumi")
plugins+=(archlinux)
;;
"sayaka")
plugins+=(archlinux)
;;
"git")
plugins+=(debian)
;;
esac
# Install Zulu if needed
if [[ ! -e ${ZUC}/ZULU_INSTALLED ]]; then
source ${DOT}/install_zulu.zsh
touch ${ZUC}/ZULU_INSTALLED
fi
# Source the needed Parts
#source ${ZUL}/core/zulu # Zulu
source ${OMZ}/oh-my-zsh.sh # Oh My ZSH
source ${LIB}/highlighting/zsh-syntax-highlighting.zsh # Syntax Highlighting
source ${HOME}/.fzf.zsh # FZF
for file in ${OWN}/aliases.d/*.zsh; do source $file; done # Aliases
# Init Zulu
#zulu init