trey (owner)

Forks

Revisions

gist: 72231 Download_button fork
public
Description:
Command Line Goodness
Public Clone URL: git://gist.github.com/72231.git
Embed All Files: show embed
.bash_profile #
1
2
3
4
5
6
source ~/bin/aliases
source ~/bin/gitprompt
export PATH="/usr/local/bin:~/bin:$PATH"
export SVN_EDITOR="mate -w"
export GIT_EDITOR="mate -w"
 
.gitconfig #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[user]
name = Trey Piepmeier
email = trey@example.com
[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
 
.inputrc #
1
2
3
4
5
6
7
# 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
 
aliases #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
alias slice='ssh trey@slice1.example.com -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'
 
gitprompt #
1
2
3
4
source /usr/local/git/contrib/completion/git-completion.bash
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='[\u@\h \w$(__git_ps1)]\$ '
 
Key Commands #
1
2
3
4
5
6
7
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