From 0b6685c6e5c001e2b0863b154fb76305ee4a1d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 7 Nov 2020 01:24:13 +0100 Subject: add example --- EXAMPLE | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 EXAMPLE (limited to 'EXAMPLE') 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 +} -- cgit v1.2.3