about summary refs log tree commit diff stats
path: root/config/ksh/functions/l.
blob: e4a759e9f49d71a6f28288c720b1b6687fb6244f (plain) (blame)
1
2
3
4
5
6
7
8
9
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
}