abobla@lemm.ee to linuxmemes@lemmy.world · 5 months agopro tiplemm.eeimagemessage-square118fedilinkarrow-up11.52K
arrow-up11.52Kimagepro tiplemm.eeabobla@lemm.ee to linuxmemes@lemmy.world · 5 months agomessage-square118fedilink
minus-squareanytimesoon@feddit.ukcakelinkfedilinkarrow-up2·5 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-up2·5 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)