aboutsummaryrefslogtreecommitdiffstats
path: root/roles/setup_utils/files/zshrc
blob: 76350573e6f31fad798ad0cb48ccaa56a6a26d46 (plain) (blame)
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
# /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"
remember that computers suck.