diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2024-01-25 16:41:33 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2024-01-25 16:41:33 -0800 |
commit | 586207ebf0872d3116b7066d1d1808b0fa9588d4 (patch) | |
tree | 7859359c26bfbe1a8677a7d44a1abf3a3b7f2141 | |
parent | c8b9b6cfa55bf734a64efcb755e1203d911bdbff (diff) | |
download | cdlog-586207ebf0872d3116b7066d1d1808b0fa9588d4.tar.gz cdlog-586207ebf0872d3116b7066d1d1808b0fa9588d4.tar.bz2 cdlog-586207ebf0872d3116b7066d1d1808b0fa9588d4.zip |
cdlog: simplify prefixes.
* cdlog.sh (cdlog): Just print numeric indices
before the paths.
-rw-r--r-- | cdlog.sh | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -104,14 +104,15 @@ cdlog.pop() fi } -# Print four recen cdlog entries. +# Print four recent cdlog entries. cdlog() { # c5 through c9 are "hidden" - printf "c1/x: %s\n" "$c1" - printf "c2/y: %s\n" "$c2" - printf "c3/z: %s\n" "$c3" - printf "c4/w: %s\n" "$c4" + printf "1: %s\n" "$c1" + printf "2: %s\n" "$c2" + printf "3: %s\n" "$c3" + printf "4: %s\n" "$c4" +} } # Aliases. |