abobla@lemm.ee to linuxmemes@lemmy.world · 2 months agopro tiplemm.eeimagemessage-square114fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imagepro tiplemm.eeabobla@lemm.ee to linuxmemes@lemmy.world · 2 months agomessage-square114fedilink
minus-squareanytimesoon@feddit.uklinkfedilinkarrow-up0·2 months agoHow do you alias the last command? My aliases are all hard coded. I had no idea you could send a variable to an alias
minus-squareOmega@sh.itjust.workslinkfedilinkarrow-up0·2 months agoProbably with !! (!n will be the command corresponding to the number n in your history, !! is shorthand for the last command)
How do you alias the last command? My aliases are all hard coded. I had no idea you could send a variable to an alias
Probably with
!!
(!n
will be the command corresponding to the number n in your history,!!
is shorthand for the last command)