-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
47 lines (43 loc) · 1.02 KB
/
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
38
39
40
41
42
43
44
45
46
47
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export EDITOR=vim
ZSH_THEME="robbyrussell"
plugins=(
aws
common-aliases
direnv
docker-compose
fzf
git
kubectl
terraform docker
zsh-completions
)
# Keybindings
# give us access to ^Q
stty -ixon
# vi mode
bindkey -v
bindkey "^F" vi-cmd-mode
# handy keybindings
bindkey "^A" beginning-of-line
bindkey "^E" end-of-line
bindkey "^K" kill-line
bindkey "^R" history-incremental-search-backward
bindkey "^P" history-search-backward
bindkey "^Y" accept-and-hold
bindkey "^N" insert-last-word
bindkey "^Q" push-line-or-edit
bindkey -s "^T" "^[Isudo ^[A" # "t" for "toughguy"
# History
setopt hist_ignore_all_dups inc_append_history
HISTFILE=~/.zhistory
HISTSIZE=4096
SAVEHIST=4096
export ERL_AFLAGS="-kernel shell_history enabled"
# Completions
#source <(glooctl completion zsh)
#source <(kubectl completion zsh)
#source <(stern --completion=zsh)
autoload -U compinit && compinit
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh