-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_aliases
32 lines (29 loc) · 944 Bytes
/
.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
# grep colorization
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# ls aliases
alias ls='ls --color'
alias ll='ls -alF --color'
alias llg='ls -alF --color | grep'
alias la='ls -A --color'
alias l='ls -al --color'
# git aliases
alias gitcl='git clone'
alias gita='git add -A'
alias gits='git status'
alias gitl='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
alias gitd='git diff'
alias gitds='git diff --staged'
alias gitnb='git checkout -b'
alias gitb='git branch'
# system
alias df="df -Tha --total"
alias du="du -ach | sort -h"
alias free="free -mt"
alias ps="ps auxf"
alias psg="ps aux | grep -v grep | grep -i -e VSZ -e" #searchable process table
alias mkdir="mkdir -pv" #nested directory
alias histg="history | grep" #searchable history
alias top="htop"
alias myip="curl http://ipecho.net/plain; echo"