-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
116 lines (102 loc) · 2.69 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Setup GNU-style colors before OMZ loads.
eval "$(gdircolors)"
ZSH_THEME="powerlevel10k/powerlevel10k"
HIST_STAMPS="yyyy-mm-dd"
zstyle :omz:plugins:nvm lazy yes
zstyle :omz:plugins:nvm lazy-cmd eslint prettier npm node typescript
zstyle :omz:plugins:ssh-agent agent-forwarding on
zstyle :omz:plugins:ssh-agent quiet yes
zstyle :omz:plugins:ssh-agent ssh-add-args --apple-use-keychain
disabled_plugins=(
brew
colorize # needed to use aliases but didn't
command-not-found
cp
dirhistory
dotenv
git-auto-fetch
git-escape-magic
git-extras
git-prompt # Suspected performance problem
gitignore
history
history-substring-search # breaks ctrl+w functionality
iterm2
keychain
lol
magic-enter
man
mvn
nvm
osx
pep8
perl
pip
pipenv
pyenv
pylint
shrink_path
singlechar
sudo
themes
vi-mode
zsh-navigation-tools # Suspected performance problem
)
plugins=(
asdf
colored-man-pages
common-aliases
fzf
git
gnu-utils
gpg-agent
gradle
jenv
jsontools
last-working-dir
python
rsync
ssh-agent
sublime
tmux
urltools
zsh-interactive-cd
)
# Injection spot for system-specific config before ZSH loads.
if [[ -e ~/.zsh-local-extras-early.sh ]]; then
source ~/.zsh-local-extras-early.sh
fi
source /Users/$(whoami)/.oh-my-zsh/oh-my-zsh.sh
# Override some OMZ history options.
unsetopt share_history
setopt append_history
setopt hist_reduce_blanks
# This macro is part of a fix for alt+backspace support on macOS.
backward-kill-word-whitespace() {
select-word-style whitespace
zle backward-kill-word
select-word-style normal
}
autoload -U select-word-style
select-word-style normal
autoload backward-kill-word-whitespace
zle -N backward-kill-word-whitespace
bindkey '^W' backward-kill-word-whitespace
BASEDIR=$(grealpath -P ~/.zshrc | xargs dirname)
source "${BASEDIR}/exports-aliases.sh"
source "${BASEDIR}/exports-manpaths.sh"
source "${BASEDIR}/exports-paths.sh"
source "${BASEDIR}/.p10k.zsh"
unset BASEDIR
export EDITOR=vim
export LESS="MRScix4"
# Injection spot for system-specific config after ZSH loads.
if [[ -e ~/.zsh-local-extras-late.sh ]]; then
source ~/.zsh-local-extras-late.sh
fi