40 lines
975 B
Bash
40 lines
975 B
Bash
# vim:sts=2:sw=2:ft=zsh
|
|
|
|
# Base directories for dotfiles.
|
|
export DOTFILES=${HOME}/.dotfiles
|
|
# Autocompletion
|
|
export FPATH=${DOTFILES}/zsh/functions:${FPATH}
|
|
|
|
# Base autoloading
|
|
autoload -Uz compaudit compinit
|
|
compinit
|
|
|
|
# zsh packages from system
|
|
source ${DOTFILES}/zsh/distro.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"
|
|
export ZSH_TMUX_CONFIG=${HOME}/.config/tmux/tmux.conf
|
|
|
|
# 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
|