What are your most liked alias for long commands or just to give them better names.

Mine are:

alias load="source .load.sh"
alias eload="$EDITOR .load.sh"
alias gpush="git push"
alias gadd="git add --all"
alias gcommit="git commit -m "
alias gst="git status -s"
alias gpull="git pull"
  • z3bra@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    I made a cool exercise some time ago: checking my top 10 used commands, to see how I can “optimize” them, and maybe create a few aliases to save a few keystrokes. Turns out I don’t need that much aliases in the end:

    alias v='vis' # my text editor
    alias sv='doas vis'
    alias ll='ls -l'
    

    And that’s pretty much it ^^ I do have a lot of scripts though, some of them being one-liners, but it makes them shell independent, which I like :)

    For reference, here is my analysis of my top 10 most used commands.

    edit: I do have a bunch of git aliases though for common subcommands I use. I prefer using them as git <alias> over using she’ll specific aliases so I can always type “git” and not mentally think wether I need a git command or a shell alias.