blob: b4c5fd5e4479760f28e5ae98f4ad6d0c9438333e (
plain)
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
38
39
40
41
42
43
44
45
|
#
# getchoo's zshrc
#
# zmodules
autoload -U compinit promptinit
zmodload zsh/complist
zstyle ':completion:*' menu select reshash true
compinit
promptinit
prompt walters
# options
setopt append_history
setopt inc_append_history
setopt share_history
# binds
bindkey -e
## clear backbuffer with ctrl-l
function clear-screen-and-scrollback() {
echoti civis >"$TTY"
printf '%b' '\e[H\e[2J' >"$TTY"
zle .reset-prompt
zle -R
printf '%b' '\e[3J' >"$TTY"
echoti cnorm >"$TTY"
}
zle -N clear-screen-and-scrollback
bindkey '^L' clear-screen-and-scrollback
# enable history
HISTFILE="$HOME/.cache/zsh/history"
HISTSIZE=100
SAVEHIST=1000
# aliases
alias ls='exa'
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# plugins
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|