-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases
57 lines (51 loc) · 1.21 KB
/
aliases
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
alias g='git'
alias ga='git add'
alias gb='git branch -vv'
alias gbc='git branch -r --contains'
alias gbr='git branch -r'
alias gc='git cherry -v origin/master'
alias gca='git commit --amend'
alias gcm='git commit'
alias gco='git checkout'
alias gm='git commit -m'
alias gd='git diff'
alias gds='git diff --staged'
alias gfe='git fetch'
alias gfh='git flathist'
alias gh='git hist'
alias gl='git log'
alias gff='git merge --ff-only @{u}'
alias gpu='git pull'
alias gp='git push'
alias gr='git reset'
alias gru='git remote update'
alias gruff='gru && gff'
alias gs='git status'
alias gsh='git show'
alias gsm='git submodule'
alias gsmu='git submodule update'
alias gst='git status'
alias mvim='/Applications/MacVim.app/Contents/MacOS/Vim -g'
alias fu='kill'
alias fuu='kill -9'
alias fuuu='killall'
alias fuuuu='killall -9'
# Why yes, my dear Pakleds, we can make colours go.
alias grep='grep --color=auto'
UNAME=`uname`
if [ "$UNAME" != "Darwin" ]; then
alias ls='ls --color=auto'
else
alias ls='ls -G'
fi
count-folder-files() {
OIFS=$IFS
IFS=$'\n'
for p in `ls -1`; do
echo "$p: `find "$p" | wc -l`"
done
IFS=$OIFS
}
if [ -f ~/configs/custom_aliases ]; then
. ~/configs/custom_aliases;
fi