aboutsummaryrefslogtreecommitdiff
path: root/zsh/zshrc
blob: 5789d80907c821ad3586ee3c8829145895ad66e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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