-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
30 lines (22 loc) · 1.58 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
# must go after exec tmux?
start_tmux() {
# Rename terminal tab
BASEDIR=${PWD##*/}
BASEDIR=${BASEDIR:-/}
echo -e "\033]0;$BASEDIR\007"
# If not already in a tmux session, attach to an existing one or create a new one
if [[ ! $TERM =~ screen ]] && [ -z $TMUX ]; then
tmux attach-session -t my-session || tmux new-session -s my-session
fi
echo -e "\033]0;$BASEDIR\007"
# best we can do for now since Apple has trouble uniquely identifying a terminal tab
alias exitkill='tmux kill-session -t $(tmux display-message -p "#S") && exit'
}
eval "$(zoxide init zsh)"
start_tmux
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
export GOPATH=/Users/[email protected]/go
export PATH=/Users/[email protected]/.nvm/versions/node/v16.20.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/go/bin:/Users/[email protected]/go/bin
export HISTORY_IGNORE="(access_token|accesstoken|AKIA|api_key|apikey|authonly|authorization|aws_access_key_id|aws_secret_access_key|bearer|client-secret|client_secret|current_key|eyjrijoi|gh_token|github_token|hooks.slack.com|id-token|id_token|kubectl --token=|kubectl config set-credentials|pagerduty_|password|private_key|private_key_id|read|refresh-token|refresh_token|refreshtoken|token|x-api-key|x-auth-key)"