zsh/zshrc
Alexander Gehrke (crater2150) 345d95999f Fix handling of ZDOTDIR variable
2016-07-25 13:48:52 +02:00

77 lines
1.7 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

HISTFILE=~/.histfile
HISTSIZE=100000
SAVEHIST=100000
setopt autocd extendedglob notify correct autonamedirs
setopt list_ambiguous autopushd pushd_ignore_dups
setopt hist_ignore_all_dups hist_ignore_space share_history
setopt no_auto_remove_slash auto_param_slash
setopt completeinword
setopt chase_links
setopt short_loops
setopt cdable_vars
# autoload completions
fpath+=( "${ZDOTDIR:+ZDOTDIR}/compdef" )
fpath+=( "/etc/zsh/compdef" )
autoload -U /etc/zsh/compdef/*(:t)
if [[ -d $ZDOTDIR/compdef ]]; then
autoload -U /etc/zsh/compdef/*(N:t)
fi
# get a file from ZDOTDIR, return file in /etc/zsh if it does not exist
zdotfile() {
if [[ -e $ZDOTDIR/$1 ]]; then
echo $ZDOTDIR/$1
else
echo /etc/zsh/$1
fi
}
bindkey -v
autoload -Uz compinit && compinit
autoload -Uz zmv
function exists { command -v "$@" >/dev/null }
#ZMODLOAD_BLACKLIST=( prompt )
stty -ixon
. $(zdotfile modules/loader.zsh) && mod_init
for i in ${ZDOTDIR:+ZDOTDIR/aliases/*~*.zwc(N)} /etc/zsh/aliases/*~*.zwc(N); do
. $i
done
echo $PATH | grep -q 'local' || . /etc/zsh/zprofile
echo $PATH | grep -q 'sbin' || . /etc/zsh/zprofile
zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format %B%d%b
zstyle ':completion:*:messages' format %d
zstyle ':completion:*:warnings' format No matches for: %d
typeset -A conf_locations
conf_locations=(
vim $XDG_CONFIG_HOME/vim
awesome $XDG_CONFIG_HOME/awesome
mutt $HOME/.mutt/muttrc
xd $XDG_CONFIG_HOME/xd.conf
zsh /etc/zsh
offlineimap $XDG_CONFIG_HOME/offlineimap/config
compose $HOME/.XCompose.long
vdirsyncer $HOME/.vdirsyncer/config
xd $XDG_CONFIG_HOME/xd.conf
ssh $HOME/.ssh/config
)
exists todo && todo