summaryrefslogtreecommitdiff
path: root/EXAMPLE
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-11-07 01:24:13 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-11-07 01:24:13 +0100
commit0b6685c6e5c001e2b0863b154fb76305ee4a1d1d (patch)
tree303c1d7b307193ece74c8c730f9d6b19e576ea0f /EXAMPLE
parenta91c2b7552139cdd7caba9089162f4bb15edf96c (diff)
downloadlst-0b6685c6e5c001e2b0863b154fb76305ee4a1d1d.tar.gz
add examplekey
Diffstat (limited to 'EXAMPLE')
-rw-r--r--EXAMPLE10
1 files changed, 10 insertions, 0 deletions
diff --git a/EXAMPLE b/EXAMPLE
new file mode 100644
index 0000000..68d072f
--- /dev/null
+++ b/EXAMPLE
@@ -0,0 +1,10 @@
+l() {
+ r=`(echo ../; ls -F) | lst`
+ key=`printf '%s\n' "$r" | head -1`
+ path=`printf '%s\n' "$r" | tail -1`
+ case $key in
+ 13) cd "$path" ;;
+ 101) vi "$path" ;; # e
+ 32) cd "$path" && l ;; # space
+ esac
+}