[–] 8 points 5 months ago (1 child)

It might be excessive for your purposes but an alternative may be to use zoxide. It learns the directories you use regularly and you can then cd to those directories through the z command. E.g. z docs.

  • source
  • [–] 47 points 7 months ago (13 children)

    Bummer, perhaps it can be repaired? By the way, be very careful about sharing photos of keys, it is often quite easy to produce a duplicate key from a photo.

  • source
  • [–] 6 points 10 months ago (1 child)

    I'm pretty sure that IFS does not apply to quoted strings since word splitting happens before the quote removal (see Shell Expansion).

    $ ( files=$(ls); IFS=$'\n' ; for x in $files; do echo $x; done )
    file a.txt
    file b.txt
    plainfile.txt
    
    $ ( files=$(ls); IFS=$'\n' ; for x in "$files"; do echo $x; done )
    file a.txt file b.txt plainfile.txt
    
  • source
  • parent
  • context
  • view more: next ›