-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
51 lines (41 loc) · 923 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# editor
export EDITOR=nvim
# path
export PATH="$PATH:$HOME/go/bin:./node_modules/.bin"
# aliases
alias be="bundle exec"
alias kc="kubectl"
alias ls="ls --color"
# asdf-vm
. "$HOME/.asdf/asdf.sh"
fpath=(${ASDF_DIR}/completions $fpath)
# autoload
autoload -Uz compinit promptinit vcs_info
compinit
promptinit
precmd() { vcs_info }
setopt prompt_subst
# completion
zstyle ':completion:*' menu select
# prompt
# prompt redhat
PROMPT='%n@%m %1~ %F{cyan}${vcs_info_msg_0_}%F{white} > '
zstyle ':vcs_info:git:*' formats '(%b)'
# history
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=$HISTSIZE
HISTDUP=erase
setopt appendhistory
setopt sharehistory
setopt hist_ignore_space
setopt hist_ignore_all_dups
setopt hist_save_no_dups
setopt hist_ignore_dups
setopt hist_find_no_dups
unsetopt autocd beep
bindkey -v
bindkey '^p' history-search-backward
bindkey '^n' history-search-forward
# shell integration
eval "$(fzf --zsh)"