Comment

Comment by keyle

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!)
parent keyle 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton