For example if I have a setup like:

 alias llaa = pwd && ll'''

Will the second command work, or would I have to set it up in a more verbose manner (like ```alias llaa = pwd && ls -la```)
  • solrize@lemmy.world
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    1 month ago

    I think you don’t want the spaces around the= sign. Preferred over alias is function llaa { … }. Alias is for backwards compatibility.

    • Successful_Try543
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      Preferred over alias is function llaa { … }. Alias is for backwards compatibility.

      Again what learned. What is wrong with having spaces around the equals sign, though?