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?
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
” forgit status
e.g.y
:yarn
b
:bun
fu
:flatpak update
cu
:checkupdates
lg
:lazygit
n
:nnn
e
:kak
shutup
: anhdparm
incantation to spin down my noisy hard drive.Also various forms of
ls
, likell
,la
, justl
, etc. (I madels
a function wrappingeza
in fish shell as well. I like eza over standard ls.)