-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
59 lines (48 loc) · 1.63 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
# source environment variables
source ~/.config/env
# set zsh theme
ZSH_THEME="agnoster-custom" # modified version of agnoster theme, source in dotfiles repo
# enable oh-my-zsh plugins
plugins=(
# default oh-my-zsh plugins
cp # define cpv command that uses rsync
sudo # press double escape to add sudo to command
git # git aliases
# have to be installed externally, handled by install.sh
vi-mode # vi-keybinds
zsh-autosuggestions
zsh-syntax-highlighting
)
# configure autosuggest plugin
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
ZSH_AUTOSUGGEST_USE_ASYNC=1
# disable zsh update prompt
DISABLE_AUTO_UPDATE=true
# load oh-my-zsh
source $ZSH/oh-my-zsh.sh
# customize syntax highlighting colors
ZSH_HIGHLIGHT_STYLES[arg0]=fg=4
ZSH_HIGHLIGHT_STYLES[command]=fg=4
ZSH_HIGHLIGHT_STYLES[alias]=fg=4
ZSH_HIGHLIGHT_STYLES[suffix-alias]=fg=4
ZSH_HIGHLIGHT_STYLES[precommand]=fg=4,bold
ZSH_HIGHLIGHT_STYLES[builtin]=fg=6,bold
ZSH_HIGHLIGHT_STYLES[default]=fg=12
ZSH_HIGHLIGHT_STYLES[path]=fg=12
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=fg=5
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]=fg=208,bold
ZSH_HIGHLIGHT_STYLES[assign]=fg=14
# Fix slow pasting with zsh-autosuggest
zstyle ':bracketed-paste-magic' active-widgets '.self-*'
# Autojump
[[ -s /usr/share/autojump/autojump.zsh ]] && source /usr/share/autojump/autojump.zsh
# Zoxide
export _ZO_ECHO=1
command -v zoxide &>/dev/null && eval "$(zoxide init zsh --cmd j)"
# source aliasrc for aliases
source ~/.config/aliasrc
# more aliases for ctfs, disabled most of the time
#source ~/.config/ctfrc
# run pfetch after initialization if installed
echo
command -v pfetch >/dev/null && pfetch