Merge branch 'main' of https://git.sagev.space/sage/dotfiles
This commit is contained in:
commit
99c56b8bd1
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue