Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
645 B

  1. No longer includes an xargs invocation.
  2. A response to https://sonomu.club/@gavcloud/104243111086171881 that I'm not
  3. sure is entirely reasonable.
  4. May or may not work on a Mac.
  5. The original question was how to do something like the intent of:
  6. alias lst "!cat ${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection | xargs -0 -I fname echo "put" \'fname\' > files.lftp"
  7. This is a good example of how ridiculously painful quote escaping is in the
  8. shell, and how I don't really have a good set of general habits for avoiding
  9. these problems, apart from doing this kind of thing in a general purpose
  10. programming language instead of involving the shell.