31 lines
1.1 KiB
Bash
31 lines
1.1 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 ${LIB}/local)
|
|
|
|
# Settings
|
|
ZSH_THEME="mortalscumbag"
|
|
DISABLE_AUTO_UPDATE="true"
|
|
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
|
|
|
|
# Plugins
|
|
case $(uname -n) in
|
|
megumi|sayaka) source ${DOTFILES_CONFIG}/zsh/os-specific/archlinux.zsh ;;
|
|
git) source ${DOTFILES_CONFIG}/zsh/os-specific/debian.zsh ;;
|
|
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
|