dotfiles

custom dotfiles
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit a0d7f3ef057624548116d9ab57e578147580dc16
parent 2ac76f5d1fc45feef0ad6e6538cb42d07bf8c338
Author: pyratebeard <root@pyratebeard.net>
Date:   Thu, 17 Feb 2022 14:01:42 +0000

use ed instead of sed so sync doesn't break

Diffstat:
Mbin/bin/todo | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bin/bin/todo b/bin/bin/todo @@ -21,7 +21,11 @@ append() { delete() { test -n "$1" || exit 1 - sed -i "${1}d" $TODO + ed $TODO << EOF >/dev/null +${1}d +w +q +EOF } # delete line "$2" (see delete() function)