forked from vincent-r/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash__alias
48 lines (40 loc) · 1.05 KB
/
.bash__alias
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
# Cool colors for man pages
alias man="TERMINFO=~/.terminfo TERM=mostlike LESS=C PAGER=less man"
# Some more, to avoid mistakes
alias rm='rm -i'
alias cp='cp -ia'
alias mv='mv -i'
# Quickly load bashrc
alias gogo='source ~/.bashrc'
alias vim=nvim
alias vi=nvim
alias h=history
alias j=jobs
# Make du and df report sizes in bytes, with commas, like our ls
alias du="du --block-size=\'1"
alias df="df -T --block-size=\'1"
alias ls='ls -FG'
alias l='ls -lrt'
alias ll='ls -l'
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias rgrep='rgrep --color=auto'
# Git Commands
# Add and Commit are used as functions
alias ga='git add'
alias gp='git push'
alias gs='git status'
alias gd='git diff'
alias gdc='gir diff --cached'
alias gl='git log -p'
alias gr='git reflog'
alias glf='git ls-files'
alias gpr='git pull --rebase'
alias gb='git branch'
alias aggro='git gc --aggressive'
alias gbsu='git branch --set-upstream'
alias gc='git commit'
alias gca='git commit -a'
alias gcam='git commit -a -m'
alias gcm='git commit -m'