• anytimesoon@feddit.uk
    link
    fedilink
    arrow-up
    2
    ·
    5 days ago

    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

    • Omega@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      5 days ago

      Probably with !! (!n will be the command corresponding to the number n in your history, !! is shorthand for the last command)