abobla@lemm.ee to linuxmemes@lemmy.world · 1 year agopro tiplemm.eeimagemessage-square116linkfedilinkarrow-up1621arrow-down13
arrow-up1618arrow-down1imagepro tiplemm.eeabobla@lemm.ee to linuxmemes@lemmy.world · 1 year agomessage-square116linkfedilink
minus-squareanytimesoon@feddit.uklinkfedilinkarrow-up0·1 year 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·1 year 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)