.
This commit is contained in:
parent
916ff52966
commit
136aa8bbc7
17 changed files with 227 additions and 191 deletions
|
|
@ -6,6 +6,6 @@ tmp="$(mktemp /tmp/journal.XXXXXX)"
|
|||
d="$(date -I)"
|
||||
grep "$d" "$JOURNAL" || printf "%s\n" "$d" > "$tmp"
|
||||
|
||||
nvi "$tmp"
|
||||
"${EDITOR:-vi}" "$tmp"
|
||||
tail "$JOURNAL"
|
||||
(printf "\n"; cat "$tmp" | tee -a "$JOURNAL") && rm "$tmp"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue