abobla@lemm.ee to linuxmemes@lemmy.world · 6 days agopro tiplemm.eeimagemessage-square111fedilinkarrow-up11.34Karrow-down17
arrow-up11.34Karrow-down1imagepro tiplemm.eeabobla@lemm.ee to linuxmemes@lemmy.world · 6 days agomessage-square111fedilink
minus-squareanytimesoon@feddit.uklinkfedilinkarrow-up2·5 days 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 days 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)