aliases: Self-documentation by using long flags
This commit is contained in:
parent
c4e992ab98
commit
65c1ef4616
1 changed files with 20 additions and 12 deletions
|
@ -12,13 +12,14 @@ alias ..='cd ..'
|
||||||
alias ...='cd ../..'
|
alias ...='cd ../..'
|
||||||
|
|
||||||
## 'ls' to 'exa'
|
## 'ls' to 'exa'
|
||||||
alias ls='exa -l --color=always --group-directories-first --classify'
|
alias ls='exa --long --color=always --group-directories-first --classify'
|
||||||
alias la='exa -al --color=always --group-directories-first --classify'
|
alias la='exa --all --long --color=always --group-directories-first --classify'
|
||||||
alias ll='exa -l --color=always --group-directories-first --classify'
|
alias ll='exa --long --color=always --group-directories-first --classify'
|
||||||
alias l.='exa -ald --color=always --group-directories-first --classify .*'
|
alias l.='exa --all --list-dirs --long --color=always --group-directories-first --classify .*'
|
||||||
|
|
||||||
## 'grep' to 'rg' -> 'ripgrep'
|
## 'grep' to 'rg' -> 'ripgrep'
|
||||||
alias grep='rg'
|
alias grep='rg'
|
||||||
|
alias nocomment="rg --invert-match '''^(#|$)'''"
|
||||||
|
|
||||||
## 'cat' to 'bat'
|
## 'cat' to 'bat'
|
||||||
alias cat='bat'
|
alias cat='bat'
|
||||||
|
@ -26,18 +27,25 @@ alias cat='bat'
|
||||||
## TODO 'delta' instead of 'git diff'
|
## TODO 'delta' instead of 'git diff'
|
||||||
|
|
||||||
## confirm before overwriting files
|
## confirm before overwriting files
|
||||||
alias cp="cp -i"
|
alias cp='cp --interactive'
|
||||||
alias mv='mv -i'
|
alias mv='mv --interactive'
|
||||||
alias rm='rm -i'
|
alias ln='ln --interactive'
|
||||||
|
alias rm='rm --interactive=always --preserve-root'
|
||||||
|
|
||||||
|
## safety nets for changing permissions on /
|
||||||
|
alias chown='chown --preserve-root'
|
||||||
|
alias chmod='chmod --preserve-root'
|
||||||
|
alias chgrp='chgrp --preserve-root'
|
||||||
|
|
||||||
## adding flags
|
## adding flags
|
||||||
alias df='df -h'
|
alias df='df --human-readable'
|
||||||
alias free='free -m'
|
alias free='free --human'
|
||||||
alias du='du -h -d 2'
|
alias du='du --human-readable --depth 2'
|
||||||
|
alias wget='wget --continue'
|
||||||
|
|
||||||
## color and condense ip output
|
## color and condense ip output
|
||||||
alias ipa='ip -br -c addr show'
|
alias ipa='ip --brief --color addr show'
|
||||||
alias ipl='ip -br -c link show'
|
alias ipl='ip --brief --color link show'
|
||||||
|
|
||||||
## always spawn new window for firefox
|
## always spawn new window for firefox
|
||||||
alias firefox='firefox --new-window'
|
alias firefox='firefox --new-window'
|
||||||
|
|
Loading…
Add table
Reference in a new issue