configs/.zshrc
.zshrcRaw
1# Set up the prompt
2
3autoload -Uz promptinit
4promptinit
5# prompt adam1
6# prompt bart
7
8setopt histignorealldups sharehistory
9
10# Use emacs keybindings even if our EDITOR is set to vi
11# bindkey -e
12
13# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
14HISTSIZE=1000
15SAVEHIST=1000
16HISTFILE=~/.zsh_history
17
18# Use modern completion system
19autoload -Uz compinit
20compinit
21
22zstyle ':completion:*' auto-description 'specify: %d'
23zstyle ':completion:*' completer _expand _complete _correct _approximate
24zstyle ':completion:*' format 'Completing %d'
25zstyle ':completion:*' group-name ''
26zstyle ':completion:*' menu select=2
27eval "$(dircolors -b)"
28zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
29zstyle ':completion:*' list-colors ''
30zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
31zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
32zstyle ':completion:*' menu select=long
33zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
34zstyle ':completion:*' use-compctl false
35zstyle ':completion:*' verbose true
36
37zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
38zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
39
40source .sh_alias
41
42PROMPT='%B%F{48}%n%F{white}:%F{39}%0~%f%b$ '
43
44# git
45autoload -Uz vcs_info
46precmd_vcs_info() { vcs_info }
47precmd_functions+=( precmd_vcs_info )
48setopt prompt_subst
49RPROMPT=\$vcs_info_msg_0_%*
50zstyle ':vcs_info:git:*' formats '%F{207}(%b)%f'
51zstyle ':vcs_info:*' enable git