This commit is contained in:
Sage Vaillancourt 2024-03-22 11:19:53 -04:00
commit 99c56b8bd1
2 changed files with 5 additions and 1 deletions

View File

@ -18,6 +18,10 @@ function helpdef {
return 1
}
function wait-for {
while ! $@; do sleep 1; done
}
function slides() {
OLD_PATH="$PATH"
PATH="$HOME/.slides-bin:$PATH"

View File

@ -90,7 +90,7 @@ add-recent() {
return
fi
echo "$1" >> "$RECENTS"
tail -n 10 "$RECENTS" > "$RECENTS.temp"
grep -v "^$" "$RECENTS" | tail -n 10 "$RECENTS" > "$RECENTS.temp"
mv "$RECENTS.temp" "$RECENTS"
}