Created
August 12, 2021 13:42
-
-
Save moimikey/cc609d8bab74ce6818d57c05c88ecbff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo starting antigen... | |
source /usr/local/share/antigen/antigen.zsh | |
antigen init $HOME/.antigenrc | |
export EDITOR="vim" | |
export HISTSIZE=9999999999 | |
export LANG="en_US.UTF-8" | |
export NVM_DIR="$HOME/.nvm" | |
export SSH_KEY_PATH="$HOME/.ssh/id_rsa" | |
export JAVA_HOME=$(/usr/libexec/java_home) | |
export SBT_HOME=/usr/local/opt/openjdk@8 | |
export TERM="xterm-256color" | |
export AWS_ASSUME_ROLE_TTL=12h | |
export AWS_SESSION_TTL=12h | |
alias stuff="cd ~/git" | |
alias _="sudo" | |
alias reload="source $HOME/.zshrc" | |
alias hosts="_ $EDITOR /etc/hosts" | |
alias zshconfig="$EDITOR ~/.zshrc" | |
alias branch="git symbolic-ref --short HEAD" | |
alias bisect="git bisect start HEAD" | |
alias ip="dig +short myip.opendns.com @resolver1.opendns.com" | |
alias sniff="_ ngrep -d 'en0' -t '^(GET|POST) ' 'tcp and port 80'" | |
alias pub="more ~/.ssh/id_rsa.pub | pbcopy | echo 'public key copied to clipboard'" | |
alias flush="_ dscacheutil -flushcache; echo `ps aux | grep mDNSResponder | grep -v grep | awk '{print $2}'` | xargs sudo kill -HUP" | |
alias rg="rg -M 250" | |
alias tl="cd ~/TrueAccord/FinServ/true-lending" | |
alias collectr="cd ~/TrueAccord/Collectr" | |
alias ta="cd ~/TrueAccord/ta-webapp" | |
setopt correct | |
function latest_lts { | |
curl -s https://nodejs.org/download/release/index.json | jq '. | map(select(.lts != false)) | .[1] | .version' | |
} | |
function latest_npm { | |
curl -s https://nodejs.org/download/release/index.json | jq '. | map(select(.lts != false)) | .[1] | .npm' | |
} | |
function latest_lts_name { | |
curl -s https://nodejs.org/download/release/index.json | jq '. | map(select(.lts != false)) | .[1] | .lts' | |
} | |
function latest_v8 { | |
curl -s https://nodejs.org/download/release/index.json | jq '. | map(select(.lts != false)) | .[1] | .v8' | |
} | |
function latest_lts_date { | |
curl -s https://nodejs.org/download/release/index.json | jq '. | map(select(.lts != false)) | .[1] | .date' | |
} | |
function update() { | |
echo — Updating Homebrew... | |
brew update | |
echo — Upgrading Homebrew packages... | |
brew upgrade | |
echo — Cleaning up... | |
brew cleanup | |
echo - Doctor... | |
brew doctor | |
echo — Done | |
} | |
function pidof { | |
COMMAND="$1" | |
PID=$(ps -A -o pid,command | grep $COMMAND | grep -v grep | awk '{print $1}') | |
if [ -n "$PID" ]; then | |
echo "$PID" | |
fi | |
} | |
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 | |
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" | |
export CC=/usr/local/Cellar/gcc@5/5.5.0_6/bin/gcc-5 | |
export CXX=/usr/local/Cellar/gcc@5/5.5.0_6/bin/g++-5 | |
export PATH="/usr/local/bin:/usr/local/sbin:$PATH" | |
export PATH="/usr/local/opt/[email protected]/bin:$PATH" | |
export PATH="/usr/local/opt/openjdk@8/bin:$PATH" | |
export PATH="/usr/local/opt/scala/bin:$PATH" | |
export PATH="/usr/local/opt/[email protected]/bin:$PATH" | |
export PATH="/usr/local/opt/qt/bin:$PATH" | |
export LDFLAGS="-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/[email protected]/lib" | |
export CPPFLAGS="-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/openssl/include -I/usr/local/opt/[email protected]/include" | |
export HDF5_DIR="/usr/local/opt/[email protected]" | |
# Added by serverless binary installer | |
export PATH="$HOME/.serverless/bin:$PATH" | |
# tabtab source for packages | |
# uninstall by removing these lines | |
[[ -f ~/.config/tabtab/__tabtab.zsh ]] && . ~/.config/tabtab/__tabtab.zsh || true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment