-
Notifications
You must be signed in to change notification settings - Fork 6
/
.zshrc
78 lines (64 loc) · 2.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
ARCHITECTURE=$(uname -m)
[[ "$ARCHITECTURE" = "x86_64" ]] && LOCAL_DIR="/usr/local"
[[ "$ARCHITECTURE" = "arm64" ]] && LOCAL_DIR="/opt/homebrew"
#=====
# ZSH
#=====
autoload -U colors && colors
autoload -Uz compinit
compinit
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="zhong"
zstyle ':omz:update' mode reminder
export UPDATE_ZSH_DAYS=30
DISABLE_MAGIC_FUNCTIONS="true"
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
plugins=(
git
)
[[ -e $ZSH/oh-my-zsh.sh ]] && source $ZSH/oh-my-zsh.sh
[[ -e "$LOCAL_DIR/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]] && source "$LOCAL_DIR/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
[[ -e "$LOCAL_DIR/share/zsh-autosuggestions/zsh-autosuggestions.zsh" ]] && source "$LOCAL_DIR/share/zsh-autosuggestions/zsh-autosuggestions.zsh"
#========
# iTerm2
#========
[[ -e "$HOME/.config/iterm2/.iterm2_shell_integration.zsh" ]] && source "$HOME/.config/iterm2/.iterm2_shell_integration.zsh"
#==================
# Homebrew (Linux)
#==================
[[ -d "/home/linuxbrew" ]] && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
#====
# Z
#====
[[ -e "$LOCAL_DIR/etc/profile.d/z.sh" ]] && . "$LOCAL_DIR/etc/profile.d/z.sh"
#=========
# Aliases
#=========
[[ -e $HOME/.config/aliases/.aliases ]] && source $HOME/.config/aliases/.aliases
[[ -e $HOME/.config/aliases/.dpg_aliases ]] && source $HOME/.config/aliases/.dpg_aliases
# [[ -e $HOME/.config/aliases/.bosa_aliases ]] && source $HOME/.config/aliases/.bosa_aliases
#=======
# Other
#=======
export EDITOR='vim'
export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="/usr/local/opt/libpq/bin:$PATH"
export PATH="/usr/local/opt/ncurses/bin:$PATH"
export PATH="/usr/local/opt/node@14/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/ncurses/lib -L/usr/local/opt/node@14/lib"
export CPPFLAGS="-I/usr/local/opt/ncurses/include -I/usr/local/opt/node@14/include"
export GOPATH=$HOME/go
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
export GOROOT="$(brew --prefix go)/libexec"
export GPG_TTY=$(tty)
#===================
# Bonsai on startup
#===================
if [[ $__CFBundleIdentifier != "com.jetbrains.intellij" ]]; then
cbonsai -p -L 42
fi
#=========
# asdf
#=========
. "$LOCAL_DIR/opt/asdf/libexec/asdf.sh"