-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
52 lines (40 loc) · 1.34 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
export PATH="/usr/local/sbin:$PATH"
export HOMEBREW_PREFIX="/usr/local/opt"
# Update prefix if running on Apple Silicon
if [[ "$(uname -m)" == "arm64" ]]; then
export HOMEBREW_PREFIX="/opt/homebrew/opt"
fi
export ZPLUG_HOME="$HOMEBREW_PREFIX/zplug"
setopt AUTO_CD
setopt HIST_IGNORE_SPACE
source $ZPLUG_HOME/init.zsh
# Plugins
zplug "agkozak/zsh-z", from:github, depth:1
zplug "plugins/sudo", from:oh-my-zsh, depth:1
zplug "plugins/gpg-agent", from:oh-my-zsh, depth:1
zplug "zsh-users/zsh-autosuggestions", from:github, depth:1
zplug "zsh-users/zsh-syntax-highlighting", from:github, depth:1, defer:2
zplug "lukechilds/zsh-nvm", from:github, depth:1
# Theme
zplug "romkatv/powerlevel10k", from:github, depth:1, as:theme
# Autocompletions
zplug "zsh-users/zsh-completions", from:github, depth:1
zplug "docker/cli", from:github, depth:1, use:contrib/completion/zsh
zplug "docker/compose", from:github, depth:1, use:contrib/completion/zsh
# Prompt to install plugins if not installed
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo
zplug install
fi
fi
# Source plugins and add commands to $PATH
zplug load
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# Import aliases
source ~/.aliases
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi