abobla@lemm.eecake to linuxmemes@lemmy.world · 2 years agopro tiplemm.eeimagemessage-square116linkfedilinkarrow-up11.5Karrow-down18
arrow-up11.5Karrow-down1imagepro tiplemm.eeabobla@lemm.eecake to linuxmemes@lemmy.world · 2 years agomessage-square116linkfedilink
minus-squareanytimesoon@feddit.uklinkfedilinkarrow-up2·2 years 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·2 years 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
!!(!nwill be the command corresponding to the number n in your history,!!is shorthand for the last command)