From 0b6b9b07f35e47d0c556e3240cfa4792f594eff1 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Fri, 24 Mar 2023 17:05:45 +0100 Subject: erster Import --- zsh/zshrc | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 zsh/zshrc (limited to 'zsh/zshrc') diff --git a/zsh/zshrc b/zsh/zshrc new file mode 100644 index 0000000..5789d80 --- /dev/null +++ b/zsh/zshrc @@ -0,0 +1,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 + -- cgit v1.3