.bashrc 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. PS1="\[\e[1;32m\]\h:\W \u$\[\e[0m\] "
  2. # cool aliases bro
  3. 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'
  4. alias start-http='python -m SimpleHTTPServer'
  5. alias restart-sound="sudo kill -9 `ps ax|grep 'coreaudio[a-z]' |awk '{print $1}'`"
  6. 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"
  7. 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''
  8. alias production='export RAILS_ENV=production'
  9. # some more ls aliases from ubuntu
  10. alias ll='ls -alF'
  11. alias la='ls -A'
  12. alias l='ls -CF'
  13. # better back-searching
  14. bind '"\e[A": history-search-backward'
  15. bind '"\e[B": history-search-forward'
  16. # ssh coloring
  17. ssh() {
  18. if command ssh "$@"; then
  19. # reset iTerm session to Default
  20. echo -e "\033]50;SetProfile=Default\a"
  21. fi
  22. }
  23. if [[ ! -d ~/webdev ]]; then
  24. cd /webdev
  25. fi