Skip to content

Instantly share code, notes, and snippets.

@chucktrukk
Created November 19, 2009 16:43
Show Gist options
  • Save chucktrukk/238881 to your computer and use it in GitHub Desktop.
Save chucktrukk/238881 to your computer and use it in GitHub Desktop.
source ~/bin/aliases
source ~/bin/gitprompt
export PATH="/usr/local/bin:~/bin:$PATH"
export SVN_EDITOR="mate -w"
export GIT_EDITOR="mate -w"
[user]
name = Trey Piepmeier
email = [email protected]
[alias]
co = checkout
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
# if you are typing a command in bash and you hit
# arrow up, it'll find the things in your history
# that match what you've typed so far. -- Kevin McConnell
"\e[B": history-search-forward
"\e[A": history-search-backward
alias slice='ssh [email protected] -p xxx'
alias delpyc='find . -type f -name "*.pyc" -exec rm -fv {} \;'
alias tmbundles='cd ~/"Library/Application Support/TextMate/Bundles/";clear;pwd'
alias tmreload="osascript -e 'tell app \"TextMate\" to reload bundles'"
alias lls='ls -al'
alias gst='git status'
alias gl='git pull'
alias gp='git push'
alias gd='git diff | mate'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gba='git branch -a'
alias gcm='git commit -a -m'
source /usr/local/git/contrib/completion/git-completion.bash
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='[\u@\h \w$(__git_ps1)]\$ '
CTRL + U - delete from cursor to begining of line
CTRL + K - delete to end of line
CTRL + W - delete one word back
CTRL + E - go to end of line
CTRL + A - go to start of line
CTRL + R - bash history search
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment