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```)
  • @some_guy
    link
    64 hours ago

    You wanna use double quotes to wrap it:

    alias llaa=“pwd && ll’‘’”

  • @solrize@lemmy.world
    link
    fedilink
    76 hours ago

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

  • @sin_free_for_00_days@sopuli.xyz
    link
    fedilink
    6
    edit-2
    6 hours ago

    Should work. Just try it out and see if you get what you want. I tried:

    alias llaa='pwd && ll'
    

    then ran llaa and it did what I expected, current directory and the output of ls -al which is aliased.