summaryrefslogtreecommitdiff
path: root/EXAMPLE
diff options
context:
space:
mode:
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
+}