aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-11 16:32:05 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-11 16:32:05 +1300
commitc259de7eeca82a881ecb0f878d31e73863049267 (patch)
tree769610a69b1e65bba464509231fa97b3f646f531 /sh
parentUse POSIX-compatible versions of ls(1) opts (diff)
downloaddotfiles-c259de7eeca82a881ecb0f878d31e73863049267.tar.gz
dotfiles-c259de7eeca82a881ecb0f878d31e73863049267.zip
Group single-letter ls(1) opts
Diffstat (limited to 'sh')
-rw-r--r--sh/shrc.d/ls.sh12
1 files changed, 4 insertions, 8 deletions
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 ] &&