all repos — dotfiles @ 0aea0a116cea725c4c02c52be0e6a018d3355218

linux dotfiles

changes to log script
Prithu Goswami prithugoswami524@gmail.com
Wed, 24 Feb 2021 16:38:23 +0530
commit

0aea0a116cea725c4c02c52be0e6a018d3355218

parent

9da9fd32837119bfde9bbafbb0d09c29bb94f989

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M bin/scripts/logbin/scripts/log

@@ -4,8 +4,12 @@ # git.icyphox.sh/dotfiles/tree/home/bin/log

key="A17AFDEA2EF9A76AA868285DE2AB251EDB8945E5" log_path=~/docs/org/lifelog/ll.gpg +tmp_file_path=/tmp/llentry l="$(printf '' | dmenu)" date="$(date "+%Y-%m-%d %H:%M:%S")" [ "$l" = "" ] && exit -printf '%s\t%s\n' "$date" "$l" | cat <(gpg -d $log_path 2>/dev/null) - | gpg --yes -r $key -e -o $log_path +printf '%s\t%s\n' "$date" "$l" | cat <(gpg -d $log_path 2>/dev/null) - > $tmp_file_path +gpg --yes -r $key -o $log_path -e $tmp_file_path +# printf '%s\t%s\n' "$date" "$l" > $tmp_file_path +rm $tmp_file_path # cd `dirname $log_path` && git commit -am "lifelog commit" && git push