Comments by "Anony Mousse" (@anon_y_mousse) on "STOP! Don't Name That File Without First Watching This Video." video.
-
I mix hyphens and underscores in file names. I don't care about Windows users either or if they'll have problems with my filenames. Though I do try to keep to just lowercase because it's easier for me to type. However, there are always exceptions for me on that front, such as one I saw you have, AppImages, and my main folders in home which are still default names. On dates, my default screenshot name uses hyphens for the date and underscores for the time, though I'm perfectly fine with using colon as a time separator, and also setting a variable in bash with the date will only partially work. For instance, same day usage of a terminal window will correctly report the date, but if you keep the window open past midnight it'll still yield the previous date. A solution, which will only work from the terminal and not in shell scripts is to alias the date command and use `alias_in_question` as part of a filename. If using a shell script it would be helpful to use ~/.bash_aliases and just source it for scripts as well. Let's say you do:
alias T='date +"%H:%M:%S"' ; touch foo_bar-baz\:\:`T`; # and that'll work.
9
-
8
-
3
-
2
-
2
-
2
-
1
-
1