-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.zshrc
executable file
·115 lines (86 loc) · 2.78 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
export PATH="/usr/local/sbin:$PATH"
export EDITOR=nvim
# history
HISTSIZE=50000
SAVEHIST=10000
eval "$(starship init zsh)"
source ~/.zplug/init.zsh
zplug "plugins/aliases", from:oh-my-zsh
zplug "plugins/bun", from:oh-my-zsh
zplug "plugins/chruby", from:oh-my-zsh
zplug "plugins/colored-man-pages", from:oh-my-zsh
zplug "plugins/command-not-found", from:oh-my-zsh
zplug "plugins/starship", from:oh-my-zsh
zplug "plugins/safe-paste", from:oh-my-zsh
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-completions"
zplug "zsh-users/zsh-syntax-highlighting"
zplug "djui/alias-tips"
zplug "vineyardbovines/auto-color-ls"
zplug load
source $HOME/dotfiles/zsh/.aliases
###
# exports
###
# add ~/bin to path
PATH=/usr/bin:/bin:/usr/sbin:/sbin
export PATH
PATH=/usr/local/bin:/usr/local/sbin:"$PATH"
PATH=/opt/local/bin:/opt/local/sbin:"$PATH"
# prefer US English & utf-8
export LC_ALL="en_US.UTF-8"
export LANG="en_US"
# Avoid issues with `gpg` as installed via Homebrew.
# https://stackoverflow.com/a/42265848/96656
export GPG_TTY=$(tty)
# brew
PATH=$PATH:/opt/homebrew/bin
# configure ruby
source /opt/homebrew/opt/chruby/share/chruby/chruby.sh
source /opt/homebrew/opt/chruby/share/chruby/auto.sh
# Make Python use UTF-8 encoding for output to stdin, stdout, and stderr.
export PYTHONIOENCODING='UTF-8'
# npm global
export NPM_PACKAGES="/usr/local/npm_packages"
export NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
export PATH="$NPM_PACKAGES/bin:$PATH"
# fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --smart-case --glob "!.git/*" --glob "!node_modules/*"'
# z
. ~/z.sh
# depot tools
export PATH=$PATH:$HOME/depot_tools
# android
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools
# ripgrep
export RIPGREP_CONFIG_PATH=$HOME/.rgrc
# linux utils
export PATH="/usr/local/opt/util-linux/bin:$PATH"
export PATH="/usr/local/opt/util-linux/sbin:$PATH"
# pyenv
export PYENV_SHELL=zsh
command pyenv rehash 2>/dev/null
# pnpm
export PNPM_HOME=$HOME/Library/pnpm
export PATH=$PNPM_HOME:$PATH
# direnv
eval "$(direnv hook zsh)"
# bun completions
[ -s "/Users/pope/.bun/_bun" ] && source "/Users/pope/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# ruby
export GEM_HOME="$HOME/.gem"
export PATH="$GEM_HOME/bin:$PATH"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/pope/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/pope/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/pope/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/pope/google-cloud-sdk/completion.zsh.inc'; fi
# open tmux
if [ -z "$TMUX" ]; then
tmux attach || tmux new-session -s main
fi