command line aliases to make repeated processes quicker. I’ve used them in the past and on specific programs but never on command line utilities.

like for instance with Debian, I’m repeatedly typing sudo apt-get install, so I aliased it: alias sagi=“sudo apt-get install” and it works pretty good.

Are there any best practices or aliases to avoid when using them? Other than known commands obviously. Are there popular alias lists out there?

  • Victor@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    10 months ago

    I don’t know about your other questions but here’s my current list of aliases:

    • g: git, also several git aliases in my global gitconfig, so I can type “g s” for git status e.g.
    • y: yarn
    • b: bun
    • fu: flatpak update
    • cu: checkupdates
    • lg: lazygit
    • n: nnn
    • e: kak
    • shutup: an hdparm incantation to spin down my noisy hard drive.

    Also various forms of ls, like ll, la, just l, etc. (I made ls a function wrapping eza in fish shell as well. I like eza over standard ls.)