1
0

.bashrc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. PS1="\[\e[1;32m\]\h:\W \u$\[\e[0m\] "
  2. [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # rvm
  3. # todo: rbenv
  4. # cool aliases bro
  5. alias start-ubuntu='/Applications/VMware\ Fusion.app/Contents/Library/vmrun -T fusion start ~/Documents/Virtual\ Machines.localized/Ubuntu\ Server.vmwarevm nogui && open smb://ubuntu/share'
  6. alias start-http='python -m SimpleHTTPServer'
  7. alias restart-sound="sudo kill -9 `ps ax|grep 'coreaudio[a-z]' |awk '{print $1}'`"
  8. alias git-fancy-log="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative"
  9. alias git-timesheet='git log --pretty=format:"%C(yellow)%h%Creset %C(green)%ad%Creset %C(cyan)%s" --author="`git config --get user.name`" --since='6am''
  10. alias production='export RAILS_ENV=production'
  11. # some more ls aliases from ubuntu
  12. alias ll='ls -alF'
  13. alias la='ls -A'
  14. alias l='ls -CF'
  15. # better back-searching
  16. bind '"\e[A": history-search-backward'
  17. bind '"\e[B": history-search-forward'
  18. # ssh coloring
  19. ssh() {
  20. if command ssh "$@"; then
  21. # reset iTerm session to Default
  22. echo -e "\033]50;SetProfile=Default\a"
  23. fi
  24. }
  25. if [ -d ~/webdev ]; then
  26. cd /webdev
  27. fi