plans: fix done cmd
This commit is contained in:
parent
179881b9dc
commit
b9f6237786
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@ pkgs.writeShellScriptBin "plans" ''
|
|||
echo "- $2" >> ~/sync/plans.txt
|
||||
fi
|
||||
if [ "$1" = "done" ] ; then
|
||||
tail -n"$(($(wc -l < ~/sync/plans.txt) - 1))" ~/sync/plans.txt
|
||||
tail -n"$(($(wc -l < ~/sync/plans.txt) - 1))" ~/sync/plans.txt > ~/plans.txt.tmp
|
||||
mv ~/plans.txt.tmp ~/sync/plans.txt
|
||||
fi
|
||||
if [ "$1" = "edit" ] ; then
|
||||
hx ~/sync/plans.txt
|
||||
|
|
Loading…
Add table
Reference in a new issue