Last active
January 2, 2020 12:07
-
-
Save therako/3c9a63d9ff5c72a94366ca5dddd56ceb to your computer and use it in GitHub Desktop.
My current bash_profile without secretes
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
MAILCHECK=0 | |
# Workspace | |
WORKSPACE="$HOME/w" | |
alias w="cd ${WORKSPACE}" | |
export PATH="$PATH:$WORKSPACE/bin" | |
# Python | |
#export PYTHONUNBUFFERED=1 | |
export WORKON_HOME=$HOME/.virtualenvs | |
source /usr/local/bin/virtualenvwrapper.sh | |
alias ipy='python -m IPython' | |
alias jn='jupyter notebook' | |
alias pt='unset POSTGRES_PASSWORD; py.test -vv' | |
alias pantstest='unset POSTGRES_PASSWORD; ./pants test.pytest --options="-s -vv"' | |
alias pantstestnocache='unset POSTGRES_PASSWORD; ./pants test.pytest --no-cache-test-read --options="-s -vv"' | |
alias blackify-changes='gd --cached --name-only | grep src/python | xargs black --config pyproject.toml; gd --name-only | grep src/python | xargs black --config pyproject.toml' | |
# Go | |
export PATH=$PATH:$HOME/go/bin | |
gocover () { | |
t="/tmp/go-cover.$$.tmp" | |
go test -coverprofile=$t $@ && go tool cover -html=$t && unlink $t | |
} | |
# Git | |
alias git-remove-untracked='git fetch --prune && git branch -r | awk "{print \$1}" | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk "{print \$1}" | xargs git branch -D' | |
# Docker | |
alias docker-stop-all='docker ps --format "table {{.Names}}" | xargs docker stop' | |
# Other apps | |
export STEAM="${HOME}/Library/Application\ Support/Steam/" | |
##### Custom for current projects | |
#export TF_LOG=DEBUG | |
export AIRFLOW_GPL_UNIDECODE=yes | |
# >>> conda initialize >>> | |
# !! Contents within this block are managed by 'conda init' !! | |
__conda_setup="$('/Users/arunkumar/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" | |
if [ $? -eq 0 ]; then | |
eval "$__conda_setup" | |
else | |
if [ -f "/Users/arunkumar/anaconda3/etc/profile.d/conda.sh" ]; then | |
. "/Users/arunkumar/anaconda3/etc/profile.d/conda.sh" | |
else | |
export PATH="/Users/arunkumar/anaconda3/bin:$PATH" | |
fi | |
fi | |
unset __conda_setup | |
# <<< conda initialize <<< | |
export PATH="$HOME/.pyenv/bin:$PATH" | |
eval "$(pyenv init -)" | |
eval "$(pyenv virtualenv-init -)" | |
eval $(thefuck --alias) | |
source ~/.secret | |
export PATH="$HOME/.cargo/bin:$PATH" | |
# ls | |
alias ls='lsd' | |
alias l='ls -l' | |
alias la='ls -a' | |
alias lla='ls -la' | |
alias lt='ls --tree' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment