Tweak recent processing
This commit is contained in:
parent
658e5043e1
commit
4f79affa37
|
@ -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) \
|
||||
|
|
Loading…
Reference in New Issue