Omit empty lines from youtube history file

This commit is contained in:
Miles Alan 2020-09-12 22:24:17 -05:00
parent 64cef4d0c4
commit 67a5a25163

View file

@ -14,7 +14,7 @@ youtubesearch() {
searchmenu() {
HISTORY="$(
tac "$HISTORY_FILE" | nl | sort -uk 2 | sort -k 1 | cut -f 2 |
tac "$HISTORY_FILE" | nl | sort -uk 2 | sort -k 1 | cut -f 2 | grep . |
sed "s#^#History: #g"
)"