• nialv7@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    23 hours ago
    /* Lasciate ogni speranza.                                                  *
     * This function is a nightmare.  It works, but I'm sure that nobody really *
     * understands why.  The problem is: to make it cleaner we would need       *
     * changes in the lexer code (and then in the parser, and then...).         */
    

    source

    there are more if you keep reading… (also, spoiler alert, this function doesn’t work, that was why i was looking at it.)

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      21 hours ago

      It doesn’t surprise me in the least bit, considering how complex everything seems to be in zsh.

      Years ago, I was trying to understand how the completion system works. I never understood.

      Even the user-facing shit you need to put in your .zshrc in order to enable completion in the first place does not look like it’s made for a human to read. Not to mention that you need to enable it in the first place.

      Configuring zsh was such a mess for me, for years. I don’t know why I used it for so long. Glad I gave fish a shot.