X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t;h=12df2a0a35e61e56eb89c87625b48bfd1703384a;hb=32b898705759fb9a0aa96ebf1413ec4f5c899a14;hp=c1c85cc5fc9f092273218a06c096e0e48fcb8e20;hpb=4dd8f92abb62c142feb6a5ae499d2c5c7ef810d7;p=t.git diff --git a/t b/t index c1c85cc..12df2a0 100755 --- a/t +++ b/t @@ -1,6 +1,6 @@ #!/bin/sh -e # t -- simple notes manager -# Copyright (C) 2013-2019 Sergey Matveev +# Copyright (C) 2013-2020 Sergey Matveev # Invoke the script without any arguments to briefly print all notes. # Otherwise you can specify the following ones: # a -- add new note (either starts an editor if not arguments are specified, @@ -34,7 +34,7 @@ fi case "$1" in a) shift - note=$NOTES_DIR/$(date '+%s') + note=$NOTES_DIR/$(date "+%Y%m%d-%H%M%S") [ $# -gt 0 ] && echo "$@" > $note || $EDITOR $note ;; d)