diff options
Diffstat (limited to 'sh')
-rw-r--r-- | sh/profile.d/options.sh | 1 | ||||
-rw-r--r-- | sh/shrc.d/ls.sh | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sh/profile.d/options.sh b/sh/profile.d/options.sh index d4dc45a3..4dadf5c3 100644 --- a/sh/profile.d/options.sh +++ b/sh/profile.d/options.sh @@ -50,6 +50,7 @@ options ls \ block-size \ classify \ color \ + format \ hide-control-chars \ human-readable \ time-style diff --git a/sh/shrc.d/ls.sh b/sh/shrc.d/ls.sh index 705936e6..a7a6e15f 100644 --- a/sh/shrc.d/ls.sh +++ b/sh/shrc.d/ls.sh @@ -18,6 +18,10 @@ ls() { [ "$({ tput colors || tput Co ; } 2>/dev/null)" -ge 8 ] && set -- --color=auto "$@" + # Add --format=horizontal to print entries in a saner way + [ -e "$HOME"/.cache/ls/format ] && + set -- --format=horizontal "$@" + # Add --hide-control-chars if present; we always want this interactively, # even if the output is to a pager; we shouldn't be trying to script ls(1) # output anyway |