52 lines
1.2 KiB
Bash
52 lines
1.2 KiB
Bash
# Exports & Completionpath
|
|
export DOT=${HOME}/dotfiles
|
|
export OWN=${DOT}/zsh
|
|
export LIB=${DOT}/lib
|
|
export OMZ=${LIB}/ohmyzsh
|
|
export ZSH=${OMZ}
|
|
export ZUL=${LIB}/zulu
|
|
export ZUC=${ZUL}/config
|
|
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
|