-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
44 lines (35 loc) · 1.17 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
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt autocd
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '$HOME/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Customizing prompt
setopt PROMPT_SUBST
autoload -Uz colors && colors
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git cvs svn
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' unstagedstr ' *'
zstyle ':vcs_info:*' stagedstr ' +'
zstyle ':vcs_info:git:*' formats ' [%b%u%c]'
zstyle ':vcs_info:git:*' actionformats ' [%b|%a%u%c]'
precmd() {
vcs_info
}
PROMPT='%{$fg[cyan]%}[%n@%m %~]${vcs_info_msg_0_}\$%{$reset_color%} '
RPROMPT='%{$fg[cyan]%}[%*]%{$reset_color%}'
ZLE_RPROMPT_INDENT=0
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
# Set up fzf + bob + rustup
source <(fzf --zsh)
source <(bob complete zsh)
source <(rustup completions zsh)