55 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
| # vim:sts=2:sw=2:ft=zsh
 | |
| 
 | |
| # Base directories for dotfiles.
 | |
| export DOTFILES=${HOME}/.dotfiles
 | |
| 
 | |
| # Autocompletions
 | |
| export FPATH=${HOME}/.zsh/functions:${DOTFILES}/zsh/functions:${FPATH}
 | |
| 
 | |
| # Base autoloading
 | |
| autoload -Uz compaudit compinit
 | |
| compinit
 | |
| # Autoload bash completions
 | |
| autoload -U +X bashcompinit
 | |
| bashcompinit
 | |
| 
 | |
| # zsh packages from system
 | |
| if [[ -f ${DOTFILES}/zsh/distro.base.zsh ]]; then
 | |
|   source ${DOTFILES}/zsh/distro.base.zsh
 | |
| fi
 | |
| 
 | |
| # Antigen config - if configuration file exists.
 | |
| if [[ -f ${HOME}/.zsh/antigen.conf.zsh ]]; then
 | |
|   source ${HOME}/.zsh/antigen.conf.zsh
 | |
| fi
 | |
| 
 | |
| # configuring fzf plugin for tmux
 | |
| 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"
 | |
| 
 | |
| # Other plugins
 | |
| for plugin in `find $DOTFILES/zsh/plugins -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"
 | |
| 
 | |
| # Loading additional aliases
 | |
| for file in `find $DOTFILES/zsh/aliases -iname \*.aliases.zsh -print`; do
 | |
|   source $file
 | |
| done
 | |
| 
 | |
| if [[ -d $HOME/.zsh/conf.d ]]; then
 | |
|   for file in $HOME/.zsh/conf.d/*.zsh; do
 | |
|     source $file
 | |
|   done
 | |
| fi
 |