scripts/history: show in reverse order (newest first). - sob - simple output bar
(HTM) git clone git://git.codemadness.org/sob
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 011c246b6b581fb3a64c69be9ab6b31ba012a7bd
(DIR) parent e0cb947ff6f99ab3423e45bc681fd2ab67d4379b
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 9 Nov 2014 14:59:58 +0000
scripts/history: show in reverse order (newest first).
Diffstat:
M scripts/history | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/scripts/history b/scripts/history
@@ -13,9 +13,9 @@ climenu() {
if test x"$DISPLAY" = x""; then
clear >&2
- line=$(tail -n 100 "$file" | climenu)
+ line=$(tail -n 100 "$file" | tac | climenu)
else
- line=$(tail -n 100 "$file" | xmenu)
+ line=$(tail -n 100 "$file" | tac | xmenu)
fi
if test x"$line" != x""; then