diff options
-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 +} |