-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
37 lines (27 loc) · 838 Bytes
/
.zshrc
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
34
35
36
37
# vim:ft=sh
. "${HOME}/.env" || true
. "${HOME}/.aliases" || true
if [ "$(env | grep WSL)" ]; then
printf "\e]0;${HOST} [WSL]\a"
fi
. "${HOME}/.prompt.zsh"
precmd() { print -Pn "\e]0;%~\a"}
preexec() { print -Pn "\e]0;$1\a" }
KEYTIMEOUT=5
WORDCHARS=''
# Enable zsh fpath completions
autoload -Uz compinit && compinit -i
autoload -Uz bashcompinit && bashcompinit
zstyle ':completion:*' menu select
zstyle ':completion:*' file-list all
zstyle ':completion:*' group-name ''
complete -o nospace -C $(which terraform) terraform
ZSH_AUTOSUGGEST_STRATEGY=(completion history)
ZSH_AUTOSUGGEST_USE_ASYNC=1
bindkey "^?" backward-delete-char
bindkey "^H" backward-delete-char
bindkey "^w" backward-delete-word
bindkey "^P" up-line-or-search
bindkey "^N" down-line-or-search
bindkey "^F" forward-word
bindkey '^[[Z' reverse-menu-complete