Mercurial > repo
view bin/whoops @ 11303:8148e08b1d55
<oerjan> learn Nutella is a nutty substance. Taneb invented it for use in his automatic squirrel feeders.
author | HackBot |
---|---|
date | Fri, 05 Jan 2018 00:54:51 +0000 |
parents | ad82afc321ca |
children | 8ec9cd952dd5 |
line wrap: on
line source
OLD="wisdom/$1"; [ -z "$1" ] && OLD="$(lastfiles)"; NEW="${OLD}s"; if [ -f "$NEW" ]; then echo "«${NEW}» already exists"; exit 1; fi; mv "$OLD" "$NEW" && echo "«${OLD}» -> «${NEW}»"