From c259de7eeca82a881ecb0f878d31e73863049267 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 11 Jan 2017 16:32:05 +1300 Subject: Group single-letter ls(1) opts --- sh/shrc.d/ls.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'sh') diff --git a/sh/shrc.d/ls.sh b/sh/shrc.d/ls.sh index 40da567a..11ab15b4 100644 --- a/sh/shrc.d/ls.sh +++ b/sh/shrc.d/ls.sh @@ -5,14 +5,10 @@ # Define function proper ls() { - # Add -F to show trailing indicators of the filetype - set -- -F "$@" - - # Add -q to replace control chars with '?' - set -- -q "$@" - - # Format with entries sorted across, not down, in columns - set -- -x "$@" + # -F to show trailing indicators of the filetype + # -q to replace control chars with '?' + # -x to format entries across, not down + set -- -Fqx "$@" # Add --block-size=K to always show the filesize in kibibytes [ -e "$HOME"/.cache/ls/block-size ] && -- cgit v1.2.3