all repos — dotfiles @ c17e7b07be8a85f9c58feaf7f6bd9aa220647c3e

my *nix dotfiles

home/bin/log (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
#!/bin/sh
# life log

date="$(date "+%Y-%m-%d %H:%M:%S")"
l="$(printf '' | xprompt "$date")"
[ "$l" = "" ] && exit
printf '%s\t%s\n' "$date" "$l" >> ~/log