forked from emilis/emilis-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
55 lines (46 loc) · 1.34 KB
/
.bash_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
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ] && [ -x /usr/bin/dircolors ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias la='ls -A'
alias ll='ls -l'
alias lh='ls -lSh'
alias l='ls -CF'
# some cd aliases
alias ..='cd ..'
# du aliases
alias duh='du -sh'
duh1() {
du -h --max-depth=1 "$@" | sort -h
}
# various aliases
alias ':e'='vim'
alias ':WM'='make'
alias earlier='touch -d 1999-12-31'
alias rbackup='rsync -ghlport'
alias capitalize='sed "s/./\U&/"'
# git aliases
alias gis='git status'
alias gif='git diff'
alias gic='git commit -m'
alias gica='git commit -am'
alias gil="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
# mercurial aliases
alias hgu='hg update'
alias hgb='hg bookmark'
alias hgs='hg bookmarks;hg status'
alias hgraph='hg serve | sensible-browser http://localhost:8000/graph'
hgif() {
hg diff -g --color always "$@" | less -SR
}
#node aliases
alias ntree='tree -I node_modules'
#yt-dl aliases
alias yt-dl-urls='yt-dl -a urls.txt --download-archive=download-archive.txt'