2013-03-15 07:37:33 +00:00
|
|
|
|
|
|
|
|
|
HISTFILE=~/.histfile
|
|
|
|
|
HISTSIZE=100000
|
|
|
|
|
SAVEHIST=100000
|
2014-06-27 05:45:18 +00:00
|
|
|
|
|
2013-03-15 07:37:33 +00:00
|
|
|
|
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
|
2013-03-18 08:27:26 +00:00
|
|
|
|
fpath+=( "${ZDOTDIR:-/etc/zsh}/compdef" )
|
|
|
|
|
autoload -U ${ZDOTDIR:-/etc/zsh}/compdef/*(:t)
|
2013-03-15 07:37:33 +00:00
|
|
|
|
|
|
|
|
|
bindkey -v
|
|
|
|
|
|
|
|
|
|
autoload -Uz compinit && compinit
|
|
|
|
|
autoload -Uz zmv
|
|
|
|
|
|
|
|
|
|
|
2014-06-27 05:42:56 +00:00
|
|
|
|
function exists { command -v "$@" >/dev/null }
|
|
|
|
|
|
2013-03-15 07:37:33 +00:00
|
|
|
|
|
2016-01-05 02:45:19 +00:00
|
|
|
|
#ZMODLOAD_BLACKLIST=( prompt )
|
|
|
|
|
|
2013-03-15 07:37:33 +00:00
|
|
|
|
stty -ixon
|
|
|
|
|
|
2013-03-18 08:27:26 +00:00
|
|
|
|
. ${ZDOTDIR:-/etc/zsh}/modules/loader.zsh && mod_init
|
2013-03-15 07:37:33 +00:00
|
|
|
|
|
2016-01-05 03:34:13 +00:00
|
|
|
|
for i in ${ZDOTDIR:-/etc/zsh}/aliases/*~${ZDOTDIR:-/etc/zsh}/aliases/*.zwc; do
|
|
|
|
|
. $i
|
|
|
|
|
done
|
|
|
|
|
|
2013-03-15 07:37:33 +00:00
|
|
|
|
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’
|
2014-06-27 05:42:56 +00:00
|
|
|
|
|
2016-01-05 02:45:19 +00:00
|
|
|
|
|
2016-07-22 14:01:35 +00:00
|
|
|
|
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
|
|
|
|
|
)
|
|
|
|
|
|
2014-06-27 05:42:56 +00:00
|
|
|
|
exists todo && todo
|