-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzsh.zshrc
79 lines (63 loc) · 1.97 KB
/
zsh.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
# GOPATH
export GOPATH=$HOME/go
export GOROOT=/usr/local/go
export GOPROXY=direct
export GOBIN=$GOPATH/bin
# PATH
export PATH="$HOME/bin:$PATH"
export PATH="/opt/homebrew/bin:$PATH"
export PATH="/opt/homebrew/sbin:$PATH"
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
export PATH="/opt/homebrew/opt/curl/bin:$PATH"
export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH"
export PATH="/opt/homebrew/opt/node@22/bin:$PATH"
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
export PATH="$GOROOT/bin:$GOPATH/bin:$PATH"
export PATH="$HOME/.krew/bin:$PATH"
export PATH="$HOME/.toolbox/bin:$PATH"
export PATH="$(gem environment gemdir)/bin:$PATH"
# locale
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# history
export HIST_STAMPS="yyyy-mm-dd"
export HISTFILE=~/.zsh_history
export HISTSIZE=25000
export SAVEHIST=10000
# cargo
export CARGO_NET_GIT_FETCH_WITH_CLI=true
# set default AWS profile
export AWS_PROFILE=admin
# to fix errot prompt of 'command not found: compdef'
autoload -Uz compinit
compinit
# disable omz update
# - https://github.com/ohmyzsh/ohmyzsh?tab=readme-ov-file#getting-updates
zstyle ':omz:update' mode disabled
# antidote
source ${ZDOTDIR:-~}/.antidote/antidote.zsh
source <(antidote init)
antidote bundle <<BUNDLES
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-autosuggestions
zsh-users/zsh-completions
ohmyzsh/ohmyzsh path:lib
ohmyzsh/ohmyzsh path:plugins/colored-man-pages
ohmyzsh/ohmyzsh path:plugins/screen
ohmyzsh/ohmyzsh path:plugins/z
ohmyzsh/ohmyzsh path:themes/fishy.zsh-theme
BUNDLES
# User configuration
unsetopt beep
# command prompt
PROMPT='%{$fg[blue]%}%n%{$reset_color%}:%{$fg[green]%}$(_fishy_collapsed_wd)%{$reset_color%}$(git_prompt_info)$(git_prompt_status) %# %{$reset_color%}'
RPROMPT=''
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# customized aliases
if [ -f ~/.zshrc.aliases ]; then
source ~/.zshrc.aliases
fi