summaryrefslogtreecommitdiff
path: root/etc/functions/l
blob: d461998371cf36d9b235c11404831f73bdd0f5ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# self-explaining, I think
l () {
	if [[ -f "$1" ]]; then
		case "$1" in
			*.bz2) bzless "$1" ;;
			*.gz) zless "$1" ;;
			*) less "$1" ;;
		esac
	else
		echo "No such file, dude."
	fi
}