-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
30 lines (24 loc) · 780 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
alias la="ls -aG"
alias ll="ls -laG"
alias ls="ls -G"
alias pf="vim ~/.zshrc"
alias rs="source ~/.zshrc"
export HISTCONTROL=igoredups
export HISTSIZE=100000
export HISTFILESIZE=100000
zstyle ':completion:*:*:git:*' script ~/.git-completion.zsh
# ZSH keybindings
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey "^[[A" up-line-or-beginning-search
bindkey "^[[B" down-line-or-beginning-search
bindkey "[C" forward-word
bindkey "[D" backward-word
autoload -Uz vcs_info
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
setopt prompt_subst
zstyle ':vcs_info:git:*' formats '%F{green}(%b)'
zstyle ':vcs_info:*' enable git
PROMPT='%c ${vcs_info_msg_0_}%f $ '