-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
executable file
·113 lines (85 loc) · 3.51 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
# export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
export TZ=UTC
export PGTZ=UTC
export ZSH=$HOME/.oh-my-zsh
export ZSH_THEME="steeef"
plugins=(
git
bundler
macos
rake
golang
)
DISABLE_UPDATE_PROMPT=true source $ZSH/oh-my-zsh.sh
defaults write com.apple.finder AppleShowAllFiles YES
export ARDUINO_SDK_PATH=/Applications/Arduino.app/Contents/Java
mkdir -p $HOME/go/bin
export _GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$_GOROOT/bin
export PATH=/usr/local/lib/python2.7/site-packages:$PATH
export PATH=/usr/local/lib/python3.7/site-packages:$PATH
export PATH="$PATH:./node_modules/.bin"
export PATH="$PATH:$HOME/Library/Android/sdk/platform-tools"
export PATH="$PATH:$ARDUINO_SDK_PATH"
export PATH="$PATH:$HOME/awsbin"
export PATH="$PATH:$HOME/.poetry/bin"
export PATH="${PATH}:${HOME}/.local/bin/"
export UV_THREADPOOL_SIZE=200
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$PATH
export EDITOR=vim
eval "$(thefuck --alias)"
bindkey -M vicmd '?' history-incremental-search-backward
alias lsa='ls -a'
alias ....="cd ../../.."
alias ...="cd ../.."
alias ..="cd .."
alias ctags="`brew --prefix`/bin/ctags"
alias dc="docker-compose"
alias pyconda="export PATH=$HOME/conda/anaconda/bin:$PATH"
alias srcv=". venv/bin/activate || . ve/bin/activate"
alias setgo="export GOPATH=\`pwd\` && export PATH=\$PATH:\$GOPATH/bin"
if [[ -f $HOME/.secrets ]]; then
source $HOME/.secrets
fi
if [[ -f /usr/local/bin/direnv ]]; then
eval "$(direnv hook zsh)"
fi
export ASDF_DIR=$(brew --prefix asdf)
if [[ -f $HOME/.asdf/asdf.sh ]]; then
autoload -Uz compinit && compinit
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash
fi
SUBSTRING_SEARCH=/usr/local/share/zsh-history-substring-search/zsh-history-substring-search.zsh
if [[ -f $SUBSTRING_SEARCH ]]; then
. $SUBSTRING_SEARCH
fi
#source <(kubectl completion zsh)
# << keymappings >>
bindkey '^u' history-substring-search-up
bindkey '^y' history-substring-search-down
export VAULT_ADDR=https://vault.sandbox.k8s.centrio.com:8200
function vault_token() {
CLIENT_ID=`cat ~/.deployinator_api_key | jq -r '."Client-Id"'`
CLIENT_SECRET=`cat ~/.deployinator_api_key | jq -r '."Client-Secret"'`
export VAULT_TOKEN=`curl -X POST https://deployinator.sandbox.k8s.centrio.com/api/vault.tokens -H "Client-Id: ${CLIENT_ID}" -H "Client-Secret: ${CLIENT_SECRET}" | jq -r '.token'`
}
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
# [ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
# twilio autocomplete setup
#TWILIO_AC_ZSH_SETUP_PATH=/Users/jpowers/.twilio-cli/autocomplete/zsh_setup && test -f $TWILIO_AC_ZSH_SETUP_PATH && source $TWILIO_AC_ZSH_SETUP_PATH;export PATH="/usr/local/opt/postgresql@13/bin:$PATH"
alias docmongo='mongo "mongodb://[email protected]:27017,mongodb-shared-01.sandbox.centrio.com:27017,mongodb-shared-02.sandbox.centrio.com:27017/?authSource=admin" \
--ssl \
--sslCAFile $HOME/.secrets/sandbox-mongodb-ca.blend.crt \ # point at your local location of the certificate
--sslAllowInvalidHostnames'
alias goblend 'cd /Users/jpowers/go/src/git.blendlabs.com/blend/go'
export PATH="$HOME/.poetry/bin:$PATH"
export MONGO_BIN_PATH=$HOME/mongodb/mongodb-macos-x86_64-5.0.19/bin/
export PATH="$MONGO_BIN_PATH:$PATH"
export PATH="/usr/local/opt/gradle@6/bin:$PATH"