Last active
September 18, 2019 13:36
-
-
Save MarkGalloway/5f103a64882ca9cd5e3ab8b559b8aa5e to your computer and use it in GitHub Desktop.
bash files
This file contains 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
if [ -f $HOME/.bashrc ]; then | |
source $HOME/.bashrc | |
fi |
This file contains 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
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\[\033[1;94m\]\w\[\033[32m\]\$(parse_git_branch) \[\033[00m\]$ " | |
export VISUAL=code | |
export EDITOR="$VISUAL" | |
export PATH="/usr/local/bin:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH:." | |
# Set architecture flags | |
# export ARCHFLAGS="-arch x86_64" | |
# Virtualenvwrapper | |
# export VIRTUALENVWRAPPER_PYTHON=/usr/local/Cellar/python3/3.5.1/bin/python3 | |
# export WORKON_HOME=$HOME/.virtualenvs | |
# export PROJECT_HOME=$HOME/Documents | |
# source /usr/local/bin/virtualenvwrapper.sh | |
alias dc='docker-compose' | |
alias dct='dc -f docker-compose.test.yml' | |
alias dk='dc kill' | |
alias dup='dk && dc up' | |
alias bdup='dk && dc build && dc up' | |
alias sut='dct run --rm sut && dct down' | |
alias bsut='dct build && sut' | |
alias brewery='brew update && brew upgrade && brew cleanup' | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment