Last active
September 26, 2015 19:08
-
-
Save RaVbaker/1145307 to your computer and use it in GitHub Desktop.
My private .bashrc file.
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
export PATH="/usr/local/mysql/bin:~/bin:$PATH" | |
homebrew=/usr/local/bin:/usr/local/sbin | |
export PATH=$homebrew:$PATH | |
export JSTESTDRIVER_HOME="/Users/ravbaker/projekty/jstest" | |
export NODE_PATH="/usr/local/lib/node:/usr/local/lib/node_modules" | |
export BUNDLER_EDITOR="subl" | |
export EDITOR="vim" | |
test "$TERM" == 'xterm-color' && [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
[ -r ~/.bashrc ] && source ~/.bashrc |
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
# for RVM completion | |
test "$TERM" == 'xterm-color' && [[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion | |
# for Git completion | |
test "$TERM" == 'xterm-color' && if [ -f `brew --prefix`/etc/bash_completion.d/git-completion.bash ]; then source `brew --prefix`/etc/bash_completion.d/git-completion.bash; fi | |
# export PS1="\h:\W \u\$" | |
alias listports='sudo lsof -i -P | grep -i "listen"' | |
# aliases for bundle | |
alias be="bundle exec" | |
alias bert="bundle exec rake test" | |
alias bers="bundle exec rspec" | |
alias b="bundle install" | |
alias bo="bundle open" | |
alias g="grep -R" | |
alias l="ls" | |
alias ll="ls -l" | |
alias gitst="git st" | |
alias pgserv="pg_ctl -D /usr/local/var/postgres -l logfile" | |
alias sc="shelly console" | |
alias sdp="shelly deploy pending" | |
alias td_f="cd ~/R/td_frontend;git st" | |
alias td_a="cd ~/R/td_api;git st" | |
alias td_m="cd ~/R/td_metrics;git st" | |
# private path | |
test "$TERM" == 'xterm-color' && export PS1="\[\033[01;34m\]\$(~/.rvm/bin/rvm-prompt) \[\033[01;30m\]\h: \[\033[01;32m\]\w\[\033[00;33m\]\$(__git_ps1 \" (%s)\") \[\033[01;36m\]\$\[\033[00m\] " | |
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment