Tweak recent processing

This commit is contained in:
Sage Vaillancourt 2024-03-17 20:00:38 -04:00
parent 658e5043e1
commit 4f79affa37
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,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"
}
@ -127,6 +127,7 @@ fi
if [[ "$1" == "" ]]; then
choice="$(cat \
<(recent) \
<(echo -e "Recents:\n") \
<(system_info) \
<(windows) \
<($HOME/.rofi-list-git-repos.py --no-icon) \