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
    3
    ·
    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.

      • z3bra@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Then you should definitely check it out: vis.

        Its original goal was to be a vim clone with 90% of the features in 10% of the code. Then it grew into being the bastard son of Vim and Sam editors (plan9’s structural regex based editor).

        The result is vis, an editor with vim like navigation and text manipulation mechanics, but with access to Sam’s powerful structural regex commands which works selection wise, rather than likewise like vim. Check this paper to learn about it: struct-regex.pdf.