# Aliase
source $XDG_CONFIG_HOME/zsh/aliases

# Optionen
setopt   AUTO_PARAM_SLASH
unsetopt CASE_GLOB
setopt   HIST_SAVE_NO_DUPS

# Command completion
autoload -U compinit; compinit
_comp_options+=(globdots) # With hidden files

bindkey -v
export KEYTIMEOUT=1

fpath=($XDG_CONFIG_HOME/zsh $fpath)
autoload -Uz prompt; prompt

zmodload zsh/complist
bindkey -M menuselect 'h' vi-backward-char
bindkey -M menuselect 'k' vi-up-line-or-history
bindkey -M menuselect 'l' vi-forward-char
bindkey -M menuselect 'j' vi-down-line-or-history

autoload -Uz surround
zle -N delete-surround surround
zle -N add-surround surround
zle -N change-surround surround
bindkey -M vicmd cs change-surround
bindkey -M vicmd ds delete-surround
bindkey -M vicmd ys add-surround
bindkey -M visual S add-surround

