|
|
|
|
|
by keyle
999 days ago
|
|
Everyone does this. Otherwise you'd go bat sh*t crazy trying to remember every intricate details of common tools. also using ctrl+r and filter through older commands (ctrl+r to cycle) is also necessary for good mental health. for example alias ll="lsd --icon never -l"
alias lla="lsd --icon never -l -a" # all
alias llr="lsd --icon never -l -r -a" # reversed
alias lls="lsd --icon never -l -r -a -S" #by size
alias llt="lsd --icon never -l --tree" #tree
alias lld="lsd --icon never -l -d -a --tree" #directories tree
alias m='micro'
alias ss="git status"
alias diff="git diff --color | cat"
alias log="git log --graph --pretty=oneline --abbrev-commit"
alias lz="lazygit"
alias dc="docker-compose"
# rust
alias cr='RUST_BACKTRACE=1 cargo run'
alias clippy='cargo clippy'
... many others
Soon enough, when you start piping these, you end up with your own bash language, cca. of that time you thought it was a good idea to augment C with macros (sic!) |
|
The few times I do come up with my own stuff, it's a 2+ line function (or full shell script) that can't be duplicated in a single command and can't be done as an alias.