-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
98 lines (70 loc) · 3.06 KB
/
zshrc
File metadata and controls
98 lines (70 loc) · 3.06 KB
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
# Path to your oh-my-zsh installation.
# export ZSH=$HOME/.oh-my-zsh
source $HOME/.zsh/environment.zsh
if [[ `uname` == 'Darwin' ]]; then
source $HOME/.zsh/osx.zsh
fi
source $HOME/.zsh/functions.zsh
# Lazy-load rbenv - only initializes when ruby/rbenv/gem/bundle is first used
if command -v rbenv >/dev/null 2>&1; then
export PATH="$HOME/.rbenv/shims:$PATH"
_rbenv_init() {
unfunction ruby gem bundle rbenv 2>/dev/null
eval "$(command rbenv init -)"
}
ruby() { _rbenv_init; command ruby "$@" }
gem() { _rbenv_init; command gem "$@" }
bundle() { _rbenv_init; command bundle "$@" }
rbenv() { _rbenv_init; command rbenv "$@" }
fi
# Lazy-load pyenv - only initializes when python/pyenv/pip is first used
if command -v pyenv >/dev/null 2>&1; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/shims:$PATH"
_pyenv_init() {
unfunction python python3 pip pip3 pyenv 2>/dev/null
eval "$(command pyenv init -)"
eval "$(command pyenv virtualenv-init -)"
}
python() { _pyenv_init; command python "$@" }
python3() { _pyenv_init; command python3 "$@" }
pip() { _pyenv_init; command pip "$@" }
pip3() { _pyenv_init; command pip3 "$@" }
pyenv() { _pyenv_init; command pyenv "$@" }
fi
# source $ZSH/oh-my-zsh.sh
# autoloads keychain for ssh
# if command -v keychain >/dev/null 2>&1; then
# eval `keychain --eval --agents ssh -Q --quiet id_rsa`
# fi
# gitignore!
function gi() { curl -s https://www.toptal.com/developers/gitignore/api/$@ ;}
if [[ -f "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
source $HOME/.zsh/overrides.zsh
# all of these insist on being last, so they are.
source $HOME/.zsh/load_scripts.zsh
source $HOME/.zsh/aliases.zsh
# export "SSH_AUTH_SOCK=${HOME}/.gnupg/S.gpg-agent.ssh"
# store key in the login keychain instead of aws-vault managing a hidden keychain
export AWS_VAULT_KEYCHAIN_NAME=login
# tweak session times so you dont have to re-enter passwords every 5min
export AWS_SESSION_TTL=24h
export AWS_ASSUME_ROLE_TTL=1h
# export NVM_DIR="$HOME/.nvm"
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
[ -f $HOME/.docker/init-zsh.sh ] && source $HOME/.docker/init-zsh.sh || true # Added by Docker Desktop
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
[[ -s "/Users/gregmeyer/.gvm/scripts/gvm" ]] && unalias cd && source "/Users/gregmeyer/.gvm/scripts/gvm"
[[ -s "/opt/homebrew/bin/fnm" ]] && eval "$(fnm env --use-on-cd --version-file-strategy=recursive --corepack-enabled --resolve-engines --shell zsh)"
# vapi
export MANPATH=""$HOME/.vapi"/share/man:$MANPATH"
# bun completions
[ -s "/Users/gregmeyer/.bun/_bun" ] && source "/Users/gregmeyer/.bun/_bun"
# Added by Antigravity
export PATH="/Users/gregmeyer/.antigravity/antigravity/bin:$PATH"
# Added by Claude's Party
export PATH="$HOME/.claude/bin:$PATH"