save fish termincal output to a file using less `<` `|$cat>output.txt`

  1. starts with command-f to open less in fish shell
  2. < - less command to jump to line 1
  3. |$ - $ indicate end of file, pipe whole file (from < to $) to a shell command
  4. cat>output.txt is a shell command to pipe to file output.txt

see more man less section | <m> shell-command