diff options
author | John Ankarström <john@ankarstrom.se> | 2020-11-07 01:24:13 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2020-11-07 01:24:13 +0100 |
commit | 0b6685c6e5c001e2b0863b154fb76305ee4a1d1d (patch) | |
tree | 303c1d7b307193ece74c8c730f9d6b19e576ea0f /EXAMPLE | |
parent | a91c2b7552139cdd7caba9089162f4bb15edf96c (diff) | |
download | lst-0b6685c6e5c001e2b0863b154fb76305ee4a1d1d.tar.gz |
add examplekey
Diffstat (limited to 'EXAMPLE')
-rw-r--r-- | EXAMPLE | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 +} |