-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.alias
More file actions
58 lines (44 loc) · 1.31 KB
/
.alias
File metadata and controls
58 lines (44 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# Git section
#
alias init="git init && git add . && git commit -m \"initial commit\""
# just the changes you've made to files beyond what has been marked for commit
alias dfwi="git diff"
# just the changes marked for commit
alias dfir="git diff --cached"
# all the changes since the last commit
alias dfwh="git diff HEAD"
alias add="git add"
alias addall="git add ."
alias addp="git add --patch"
alias push?='git cherry -v origin/master'
# dangerous commands
alias rebase="git rebase -i "
alias resolved="git rebase --continue"
# revert to index (arg:File)
alias revi="git checkout --"
# revert to head (arg:File)
alias revh="git checkout HEAD"
# Show last commit
alias last="git cat-file commit HEAD"
alias modified="git ls-files -m"
alias show-untracked="git clean -n -d"
alias delete-untracked="git clean -d"
alias grm="git ls-files -deleted | xargs git rm"
#alias append="git commit --amend"
alias conflict="git mergetool --tool=vimdiff"
#
# Misc
#
alias vimm="vim +Vexplore"
alias netstat="netstat -nal -p tcp && netstat -nal -p udp"
alias ..='cd ..'
alias =clear
alias clj="~/opt/ClojureX/clj"
#alias top="top -o cpu -S"
if [ "Darwin" = `uname` ]
then
alias apachectl='sudo /opt/local/apache2/bin/apachectl'
alias mysqlctl='sudo /opt/local/share/mysql5/mysql/mysql.server'
fi
alias geb="git_empty_branch"