diff options
author | binary <me@rgoncalves.se> | 2020-11-02 13:20:53 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-11-02 13:20:53 +0100 |
commit | 67c0e448276e46fafd47db73dfc0031786a18dc0 (patch) | |
tree | fa7635500542cab95325907f9a0b173bf621f74f /roles/common/files/zshrc | |
parent | 1e059c8be273e090ed27a198e1b7b7ca5c0257b3 (diff) | |
download | infrastructure-67c0e448276e46fafd47db73dfc0031786a18dc0.tar.gz |
Refactor utils and hostname to common role
Diffstat (limited to 'roles/common/files/zshrc')
-rw-r--r-- | roles/common/files/zshrc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/roles/common/files/zshrc b/roles/common/files/zshrc new file mode 100644 index 0000000..7635057 --- /dev/null +++ b/roles/common/files/zshrc @@ -0,0 +1,30 @@ +# /etc/zshrc configuration ~~ rgoncalves.se infrastructure + +# export environment variables +export TERM=xterm-256color +export LANG=en_US.UTF-8 + +# zsh options +CASE_SENSITIVE="false" + +# autocomplete +autoload -U history-search-end +zle -N history-beginning-search-backward-end history-search-end +zle -N history-beginning-search-forward-end history-search-end +bindkey "^[[A" history-beginning-search-backward-end +bindkey "^[[B" history-beginning-search-forward-end +bindkey "^[[1;5C" forward-word +bindkey "^[[1;5D" backward-word +bindkey "\e[3~" delete-char +bindkey '^[[Z' reverse-menu-complete + +zstyle ':completion:*' completer _complete +zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+l:|=* r:|=*' +autoload -Uz compinit +compinit -u + +# aliases +alias cdd="cd .." + +# prompt +PROMPT="%B %n@%m %~ %# %b" |