-
Notifications
You must be signed in to change notification settings - Fork 3
/
zshrc
101 lines (84 loc) · 3.19 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/usr/bin/env zsh
# Source the shared between sh bash and zsh
source "$HOME/.profile"
# Add antigen and plugins
export ANTIGEN_LOG='/dev/stdout'
export ADOTDIR="$HOME/.zsh/bundle"
source "$HOME/.zsh/antigen/antigen.zsh"
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions
# antigen bundle zsh-users/zsh-history-substring-search
antigen bundle BrandonRoehl/zsh-clean
# antigen bundle "$HOME/workspace/zsh-clean" --no-local-clone
# Tell Antigen that you're done.
antigen apply
setopt prompt_subst
setopt correct
setopt EXTENDED_GLOB
# This instead for bash like glob
# setopt KSH_GLOB
# Setopt for testing zsh plugins
# setopt WARN_CREATE_GLOBAL
# Enable colors in prompt
export TERM=xterm-256color
# Enable colored output for ls
export CLICOLOR=1 # MacOS
# For Linux or MacOS with brew install coreutils
if which dircolors &>/dev/null
then
alias ls='ls --color=auto --classify'
eval $(dircolors)
fi
alias grep='grep --color=auto'
autoload -U colors
colors
# Add the iTerm integration
if [ -f "$HOME/.iterm2_shell_integration.zsh" ]; then
source "$HOME/.iterm2_shell_integration.zsh"
fi
# The following lines were added by compinstall
zstyle ':completion:*' auto-description '%d'
zstyle ':completion:*' completer _complete _ignored _approximate
zstyle ':completion:*' insert-unambiguous false
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character to insert%s'
zstyle ':completion:*' menu select=1
zstyle ':completion:*' original true
zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
zstyle ':completion:*' use-compctl true
zstyle ':completion:*' verbose true
zstyle ':completion:*' use-cache true
zstyle :compinstall filename '~/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -v
# End of lines configured by zsh-newuser-install
# export PATH="$PATH:$HOME/workspace/universe/bin"
# Plugin configuration
# Declare the variable
typeset -A ZSH_HIGHLIGHT_STYLES
# Go to the full 256 bit colors
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=203,bold'
ZSH_HIGHLIGHT_STYLES[command]='fg=84'
ZSH_HIGHLIGHT_STYLES[alias]=$ZSH_HIGHLIGHT_STYLES[command]
ZSH_HIGHLIGHT_STYLES[function]=$ZSH_HIGHLIGHT_STYLES[command]
ZSH_HIGHLIGHT_STYLES[builtin]='fg=177'
ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=177'
ZSH_HIGHLIGHT_STYLES[globbing]='fg=99'
ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=50'
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=45'
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]=$ZSH_HIGHLIGHT_STYLES[single-hyphen-option]
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=215'
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]=$ZSH_HIGHLIGHT_STYLES[single-quoted-argument]
ZSH_HIGHLIGHT_STYLES[assign]='fg=227'
ZSH_HIGHLIGHT_STYLES[redirection]=$ZSH_HIGHLIGHT_STYLES[assign]
ZSH_HIGHLIGHT_STYLES[comment]='fg=243'
ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=50'
ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=212'
ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]=$ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]