# vim:sts=2:sw=2:ft=zsh # Base directories for dotfiles. export DOTFILES=~/.dotfiles # Autocompletion export FPATH=${DOTFILES}/zsh/functions:${FPATH} # Base autoloading autoload -Uz compaudit compinit compinit # zsh packages from system uname -a | grep -qi 'debian' && source ${DOTFILES}/zsh/debian.base.zsh uname -a | grep -qi 'manjaro' && source /usr/share/zsh/manjaro-zsh-config && source /usr/share/zsh/manjaro-zsh-prompt uname -a | grep -qi 'archlinux' && source ${DOTFILES}/zsh/archlinux.base.zsh test -f /etc/redhat-release ] && grep -qi centos /etc/redhat-release && source ${DOTFILES}/zsh/centos.base.zsh # Plugins for plugin in `find $DOTFILES/zsh/plugins -type f -iname \*.plugin.zsh -print`; do if [ -f /etc/redhat-release ]; then if [ "$(basename ${plugin})" != 'fzf.plugin.zsh' ]; then source $plugin fi else source $plugin fi done # EDITOR export EDITOR="/usr/bin/vim" # FZF default options [ -x `which fzf 2>/dev/null` ] && export FZF_DEFAULT_OPTS="--multi --no-mouse --ansi --color=dark" # Loading rvm if exists [ -f /etc/profile.d/rvm.sh ] && source /etc/profile.d/rvm.sh # Loading additional aliases for file in `find $DOTFILES/zsh/aliases -type f -iname \*.aliases.zsh -print`; do source $file done