about summary refs log tree commit diff stats
path: root/etc/ksh/functions/l.
diff options
context:
space:
mode:
Diffstat (limited to 'etc/ksh/functions/l.')
-rw-r--r--etc/ksh/functions/l.10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/ksh/functions/l. b/etc/ksh/functions/l.
new file mode 100644
index 0000000..e4a759e
--- /dev/null
+++ b/etc/ksh/functions/l.
@@ -0,0 +1,10 @@
+#!/bin/ksh
+function l. {
+	if [[ -n "$1" ]]; then
+		( cd "$1" 2>/dev/null ||\
+			{ echo "$0: $1 - No such directory" >&2 ; exit; }
+		ls -d .* )
+	else
+		ls -d .*
+	fi
+}