From 6b83e4ac5fb95d8783748d458fc0ba6a3415e1a7 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 25 Aug 2016 13:18:47 +1200 Subject: Switch ls()/readline to horizontal list/complete --- sh/shrc.d/ls.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sh/shrc.d/ls.sh') 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 -- cgit v1.2.3