Created
February 15, 2010 07:53
-
-
Save lauriro/304471 to your computer and use it in GitHub Desktop.
.bachrc
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
SSH_AGENT_FILE=`echo ~/.ssh-agent-$(hostname)` | |
source ${SSH_AGENT_FILE} &> /dev/null | |
alias ssh-add='if ! kill -0 "$SSH_AGENT_PID" 2>/dev/null; then ssh-agent > "$SSH_AGENT_FILE"; source "$SSH_AGENT_FILE"; fi; ssh-add' | |
alias ui='cd /cygdrive/d/Code/yoga/web' | |
alias web='cd /cygdrive/d/Code/github/lauriro.github.com' | |
alias runphp='/usr/local/php-5.3.1/php-cgi.exe -b 127.0.0.1:9000 &' | |
alias runwww='kill `cat /var/run/lighttpd.pid` 2>/dev/null; /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf' | |
export DISPLAY=127.0.0.1:0.0 | |
alias runx='XWin.exe -screen 0 -multiwindow -clipboard -xkblayout ee > /dev/null 2>&1 &' | |
alias diffmerge='/cygdrive/c/Program\ Files/SourceGear/DiffMerge/DiffMerge.exe' | |
# git stuff | |
source /etc/bash_completion.d/git | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
export PS1=' | |
\[\033[32m\]\u@\h \[\033[33m\w$(__git_ps1)\033[0m\] | |
$ ' | |
alias b='git branch' | |
alias c='git commit' | |
alias ca='git commit -a' | |
alias cm='git commit -m' | |
alias cam='git commit -a -m' | |
alias go='git checkout' | |
alias gob='git checkout -b' | |
alias s='git s' | |
complete -o default -o nospace -F _git_branch b | |
complete -o default -o nospace -F _git_checkout go gob | |
alias gitka='gitk --all&' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment