Created
April 20, 2018 00:23
-
-
Save somecallmejosh/bb76a4cda251166698982955b3ce001d to your computer and use it in GitHub Desktop.
My Bash File From Work
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
#Dot files | |
alias editbash='code ~/.bash_profile' | |
alias editzsh='code ~/.zshrc' | |
alias editgitconfig='code ~/.gitconfig' | |
alias editgitignore='code ~/.gitignore' | |
alias editnpmdefaults='code ~/.npmrc' | |
alias edithosts='code /etc/hosts' | |
alias s3config='code ~/.s3cfg' | |
alias dbstart='pg_ctl -D /usr/local/bin/postgres -l /usr/local/bin/postgres/server.log start' | |
alias dbstop='pg_ctl -D /usr/local/bin/postgres -l /usr/local/bin/postgres/server.log stop' | |
alias ciorails='foreman run rails s' | |
alias ciodev='git checkout develop' | |
alias cvrails='rails server -p 3000 -b 0.0.0.0' | |
alias clearioscache=`xcrun simctl erase all` | |
alias frr='foreman run rails s' | |
alias perchloratego='go run -tags debug main.go debug.go' | |
alias rakeqa='bundle exec rake qa:setup' | |
alias rakeqaupdate='bundle exec rake qa:update' | |
# Common locations | |
alias home='cd ~' | |
alias desktop='cd ~/desktop' | |
alias personalweb='cd /Users/jbriley/Dropbox/Work/personal-projects/web' | |
alias trainingweb='cd /Users/jbriley/Dropbox/Work/personal-projects/training' | |
alias work='cd /Users/jbriley/Documents' | |
alias iTermScripts='cd /Users/jbriley/Library/Application Support/iTerm/Scripts' | |
alias perchlorate='cd /Users/jbriley/code/goworkspace/src/github.com/Americastestkitchen/perchlorate' | |
# Projects | |
alias atk='cd ~/Documents/atk' | |
alias atkui='cd ~/Documents/atk-ui-pantry' | |
alias cio='cd ~/Documents/cio' | |
alias cioreact='cd ~/Documents/cio/react' | |
alias cv='cd ~/Documents/content-verticals' | |
alias cvrefactor='cd /Users/jbriley/Dropbox/Work/personal-projects/web/cv-refactor' | |
alias moneypenny='cd ~/Documents/moneypenny' | |
alias sherpa='cd /Users/jbriley/atk/sherpa' | |
alias speakeasy='cd ~/Documents/speak_easy' | |
alias spyglass='cd /Users/jbriley/atk/spyglass' | |
alias treasure='cd /Users/jbriley/atk/treasure' | |
#Training | |
alias railsdevcamp='cd /Users/jbriley/Dropbox/Work/personal-projects/training/DevcampPortfolio' | |
alias reactfundamentals='cd ~/Documents/egghead-training/react-fundamentals' | |
alias wbnode='cd /Users/jbriley/Dropbox/Work/personal-projects/training/Learn-Node/starter-files' | |
# Open Web Projects | |
alias openci='open http://www-test.cooksillustrated.com:3000' | |
alias pythonserver='python -m SimpleHTTPServer 8000' | |
alias killrails='kill -INT $(cat tmp/pids/server.pid)' | |
alias killhugo='sudo lsof -t -i tcp:1313 | xargs kill -9' | |
export PATH="$HOME/.node/bin:$PATH" | |
# Common tasks | |
alias showopenports='ps aux | grep -i manage' | |
function parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
GRAY="\[\033[1;30m\]" | |
LIGHT_GRAY="\[\033[0;37m\]" | |
CYAN="\[\033[0;36m\]" | |
LIGHT_CYAN="\[\033[1;36m\]" | |
NO_COLOUR="\[\033[0m\]" | |
PS1="$GREEN[\W]$RED\$(parse_git_branch)$NO_COLOUR \$ " | |
export ELIXIR_HOME=/usr/local/bin/elixir | |
export PATH=$POSTGRES_HOME:$ELIXIR_HOME:$PATH | |
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash" | |
export GOROOT="/usr/local/go" | |
export GOPATH="/Users/jbriley/code/goworkspace" | |
export PATH="/Users/jbriley/code/goworkspace/bin:$PATH" | |
export PATH=$PATH:/usr/local/go/bin | |
# export PATH="./node_modules/.bin:$PATH" | |
source ~/.profile | |
export PATH="/Users/jbriley/.node/lib/node_modules/javascripting/bin/:$PATH" | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export NVM_DIR="/Users/jbriley/.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 | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
### Added by the Heroku Toolbelt | |
export PATH="/usr/local/heroku/bin:$PATH" | |
# Load RVM into a shell session *as a function* | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment