dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Suggestion to use `date +%s` instead of '.bak'

Open joelfranusic-okta opened this issue 9 years ago • 1 comments

In your bak function, you rename a file to ".bak", I humbly propose that you use the current time_t instead, since this gives you a "stack" instead.

It's pretty easy to get time_t on a modern unix system:

echo `date +%s`

https://github.com/shazow/dotfiles/blob/master/.bashrc#L95

joelfranusic-okta avatar Dec 15 '15 18:12 joelfranusic-okta

I don't disagree but not a problem I run into often enough to warrant it. :) I aim for solving the 80-90% case, the rest I'm happy to do manually.

shazow avatar Dec 15 '15 19:12 shazow