| 1234567891011121314151617181920212223242526272829 |
- PS1="\[\e[1;32m\]\h:\W \u$\[\e[0m\] "
- # cool aliases bro
- 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'
- alias start-http='python -m SimpleHTTPServer'
- alias restart-sound="sudo kill -9 `ps ax|grep 'coreaudio[a-z]' |awk '{print $1}'`"
- 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"
- 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''
- alias production='export RAILS_ENV=production'
- # some more ls aliases from ubuntu
- alias ll='ls -alF'
- alias la='ls -A'
- alias l='ls -CF'
- # better back-searching
- bind '"\e[A": history-search-backward'
- bind '"\e[B": history-search-forward'
- # ssh coloring
- ssh() {
- if command ssh "$@"; then
- # reset iTerm session to Default
- echo -e "\033]50;SetProfile=Default\a"
- fi
- }
|