diff options
| author | Thomas Schmucker <ts@its1.de> | 2023-05-27 10:10:55 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2023-05-27 10:10:55 +0200 |
| commit | 38aca8584286842dd99dc8f28e3d44a4c743d3bc (patch) | |
| tree | 672d18664108e677343e0ef257ca1f8362d7777e /zsh/zshrc | |
| parent | ea20114f0842e9995e5bd8fa01c88c8f6516b80d (diff) | |
| download | dotfiles-38aca8584286842dd99dc8f28e3d44a4c743d3bc.tar.gz dotfiles-38aca8584286842dd99dc8f28e3d44a4c743d3bc.tar.bz2 dotfiles-38aca8584286842dd99dc8f28e3d44a4c743d3bc.zip | |
Besseres Setup für Auto-Vervollständigung
Diffstat (limited to 'zsh/zshrc')
| -rw-r--r-- | zsh/zshrc | 13 |
1 files changed, 5 insertions, 8 deletions
| @@ -6,21 +6,18 @@ setopt AUTO_PARAM_SLASH | |||
| 6 | unsetopt CASE_GLOB | 6 | unsetopt CASE_GLOB |
| 7 | setopt HIST_SAVE_NO_DUPS | 7 | setopt HIST_SAVE_NO_DUPS |
| 8 | 8 | ||
| 9 | # Command completion | 9 | [[ ! -r /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]] || source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh |
| 10 | autoload -U compinit; compinit | 10 | [[ ! -r /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]] || source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh |
| 11 | _comp_options+=(globdots) # With hidden files | 11 | [[ ! -r ~/.opam/opam-init/init.zsh ]] || source ~/.opam/opam-init/init.zsh |
| 12 | |||
| 13 | zstyle ':completion:*' menu select | ||
| 14 | zstyle ':completion:*:*:*:*:descriptions' format '%F{green}-- %d --%f' | ||
| 15 | |||
| 16 | [[ ! -r ~/.opam/opam-init/init.zsh ]] || source ~/.opam/opam-init/init.zsh >/dev/null 2>&1 | ||
| 17 | 12 | ||
| 18 | bindkey -v | 13 | bindkey -v |
| 19 | export KEYTIMEOUT=1 | 14 | export KEYTIMEOUT=1 |
| 20 | 15 | ||
| 21 | fpath=($XDG_CONFIG_HOME/zsh $fpath) | 16 | fpath=($XDG_CONFIG_HOME/zsh $fpath) |
| 22 | autoload -Uz prompt; prompt | 17 | autoload -Uz prompt; prompt |
| 18 | autoload -Uz completion; completion | ||
| 23 | 19 | ||
| 20 | # Keybindings | ||
| 24 | zmodload zsh/complist | 21 | zmodload zsh/complist |
| 25 | bindkey -M menuselect 'h' vi-backward-char | 22 | bindkey -M menuselect 'h' vi-backward-char |
| 26 | bindkey -M menuselect 'k' vi-up-line-or-history | 23 | bindkey -M menuselect 'k' vi-up-line-or-history |
