-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
159 lines (121 loc) · 5.46 KB
/
zshrc
File metadata and controls
159 lines (121 loc) · 5.46 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
#!/usr/bin/env zsh
# Fig pre block. Keep at the top of this file.
# [[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
ZSH_DISABLE_COMPFIX="true"
OP_BIOMETRIC_UNLOCK_ENABLED=true
# Lines configured by zsh-newuser-install
HISTFILE=$HOME/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory autocd beep extendedglob nomatch notify
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename "${HOME}/.zshrc"
autoload -U +X compinit && compinit
# pyenv
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
if which pyenv > /dev/null; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
fi
export PHPBREW_SET_PROMPT=1
export PHPBREW_RC_ENABLE=1
[[ -f ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc
if [[ $(uname -a | grep Darwin) ]]; then
export BREWBASE=/opt/homebrew
else
export BREWBASE=$HOME/.linuxbrew
fi
# load zgenom
test -f "${HOME}/.zgenom/zgenom.zsh" || \
git clone https://github.com/jandamm/zgenom.git "${HOME}/.zgenom"
source "${HOME}/.zgenom/zgenom.zsh"
# Check for plugin and zgenom updates every 7 days
# This does not increase the startup time.
zgenom autoupdate
#source ${BREWBASE}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fpath=(${BREWBASE}/share/zsh-completions $fpath)
# if the init script doesn't exist
if ! zgenom saved; then
echo "Creating a zgenom save"
zgenom load 'chrissicool/zsh-256color'
zgenom load 'qianxinfeng/zsh-vscode'
zgenom load 'skx/sysadmin-util'
zgenom load 'tysonwolker/iterm-tab-colors'
zgenom load 'ytet5uy4/pctl'
zgenom load 'zpm-zsh/autoenv'
zgenom load "zpm-zsh/colors"
zgenom load "zpm-zsh/colorize"
zgenom load "reegnz/jq-zsh-plugin"
zgenom load "Dbz/zsh-kubernetes"
zgenom load "djui/alias-tips"
zgenom load "lukechilds/zsh-nvm"
zgenom load "pbar1/zsh-terraform"
zgenom load "blimmer/zsh-aws-vault"
zgenom load "mdumitru/git-aliases"
# zgenom ohmyzsh "plugins/aws"
# zgenom ohmyzsh "plugins/brew"
# zgenom ohmyzsh "plugins/dircycle"
# zgenom ohmyzsh "plugins/docker"
# zgenom ohmyzsh "plugins/git"
# zgenom ohmyzsh "plugins/wd"
zgenom save
fi
export NVM_DIR="$HOME/.nvm"
alias byod="networksetup -switchtolocation 'NBCU Non-Proxy' && networksetup -setairportnetwork en0 'NBCU_BYOD'"
alias corp="networksetup -switchtolocation 'NBCU AutoProxy' && networksetup -setairportnetwork en0 'NBCU_Corp'"
alias jcli="java -jar $HOME/jenkins-cli.jar -webSocket -auth @${HOME}/.jcli"
alias pj='npx projen'
#export http_proxy="http://proxy.anbcge.nbcu.com:80"
#export https_proxy="http://proxy.anbcge.nbcu.com:80"
export PATH=$HOME/go/bin:$PATH
export PATH="${BREWBASE}/sbin:$PATH"
export PCTL_PROXY_ADDRESS=proxy.inbcu.com PCTL_PROXY_PORT=80
fpath=($fpath $HOME/.zsh/completion)
[ -f $HOME/.kube/ranchercli ] && export RANCHER_TOKEN=$(cat ~/.kube/ranchercli)
[ -f $HOME/.fzf.zsh ] && source ~/.fzf.zsh
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
export PATH="$HOME/.linuxbrew/bin:$PATH"
export VAULT_ADDR="https://vault.nbcnewstools.net/"
command -v "eksctl" > /dev/null && source <(eksctl completion zsh)
command -v "lsd" > /dev/null && alias ls='lsd'
command -v "svcat" > /dev/null && source <(svcat completion zsh)
command -v "helm" > /dev/null && source <(helm completion zsh)
command -v "goenv" > /dev/null && eval "$(goenv init -)"
command -v "sdkman" > /dev/null && source "$HOME/.sdkman/bin/sdkman-init.sh"
if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
##### WHAT YOU WANT TO DISABLE FOR WARP - BELOW
test -e "$HOME/.iterm2_shell_integration.zsh" && source "~/.iterm2_shell_integration.zsh"
##### WHAT YOU WANT TO DISABLE FOR WARP - ABOVE
fi
# The next line updates PATH for the Google Cloud SDK.
if [ -f "$HOME/google-cloud-sdk/path.zsh.inc" ]; then . "~/google-cloud-sdk/path.zsh.inc"; fi
# The next line enables shell command completion for gcloud.
if [ -f "$HOME/google-cloud-sdk/completion.zsh.inc" ]; then . "~/google-cloud-sdk/completion.zsh.inc"; fi
command -v "akamai" > /dev/null && eval "$(akamai --zsh)"
# To enable zsh auto-completion, run: eval "$(/usr/local/bin/akamai --zsh)"
# tabtab source for packages
# uninstall by removing these lines
[[ -f $HOME/.config/tabtab/__tabtab.zsh ]] && . ~/.config/tabtab/__tabtab.zsh || true
export PATH="$GOROOT/bin:$PATH"
export PATH="$PATH:$GOPATH/bin"
# # Fig post block. Keep at the bottom of this file.
# [[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh"
export OP_BIOMETRIC_UNLOCK_ENABLED=true
export PATH="/opt/homebrew/opt/php@8.1/bin:$PATH"
export PATH="/opt/homebrew/opt/php@8.1/sbin:$PATH"
command -v "starship" > /dev/null && eval "$(starship init zsh)"
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
alias bashly='docker run --rm -it --user $(id -u):$(id -g) --volume "$PWD:/app" dannyben/bashly'
export PATH="${BREWBASE}/bin:$PATH"
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /opt/homebrew/Cellar/tfenv/3.0.0/versions/1.4.6/terraform terraform
### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT)
export PATH="/Users/206588409/.rd/bin:$PATH"
### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT)