-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
43 lines (37 loc) · 1.07 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
## Modified commands
# Color all the output
alias diff='colordiff'
alias grep='grep --color=auto'
alias ip='ip -c'
# Human output
alias df='df -h'
alias du='du -h'
alias mkdir='mkdir -pv'
alias dmesg='dmesg -e'
# optimized copying
alias cp='cp -i --reflink=auto'
## Replacements
alias vim='$EDITOR'
alias edit='$EDITOR'
alias more='less'
alias host='resolvectl query'
## Abbreviations
alias e='$EDITOR'
## Privilege Escalation
alias sudo='sudo ' # have aliases used with sudo as well
alias svim='sudoedit'
## ls
alias ls='ls -hF --color=auto --hyperlink=auto'
alias lr='ls -R' # recursive ls
alias ll='ls -l'
alias la='ll -A'
alias lx='ll -BX' # sort by extension
alias lz='ll -rS' # sort by size
alias lt='ll -rt' # sort by date
alias lm='la | more'
## dotfiles management
alias config='git --git-dir="$HOME/.local/share/dotfiles/" --work-tree="$HOME"'
alias dotlist='git --git-dir="$HOME/.local/share/dotfiles/" --work-tree="$HOME"\
ls-tree -r HEAD --name-only'
## other
alias rot13="tr 'A-Za-z' 'N-ZA-Mn-za-m'"