aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-04-30 15:57:39 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-02 23:37:04 +1200
commitdb970245ceb700eccb513697c89d258e1588cf4a (patch)
treeb72bd840837e992b8b6ae5d293f9b36cb9f15fde
parentBump VERSION (diff)
downloaddotfiles-db970245ceb700eccb513697c89d258e1588cf4a.tar.gz
dotfiles-db970245ceb700eccb513697c89d258e1588cf4a.zip
Force unwanted --quoting-style option to ls(1) off
-rw-r--r--sh/profile.d/options.sh1
-rw-r--r--sh/shrc.d/ls.sh4
2 files changed, 5 insertions, 0 deletions
diff --git a/sh/profile.d/options.sh b/sh/profile.d/options.sh
index ad9d43ab..f9dc3c79 100644
--- a/sh/profile.d/options.sh
+++ b/sh/profile.d/options.sh
@@ -52,5 +52,6 @@ options ls \
block-size \
color \
human-readable \
+ quoting-style \
time-style
)
diff --git a/sh/shrc.d/ls.sh b/sh/shrc.d/ls.sh
index 203a734f..c6558fc3 100644
--- a/sh/shrc.d/ls.sh
+++ b/sh/shrc.d/ls.sh
@@ -31,6 +31,10 @@ ls() {
[ "$(exec 2>/dev/null;tput colors||tput Co||echo 0)" -ge 8 ] ; then
set -- --color=auto "$@"
fi
+ ## Force the new entry quoting off
+ if [ -e "$HOME"/.cache/sh/opt/ls/quoting-style ] ; then
+ set -- --quoting-style=literal "$@"
+ fi
## Add --time-style='+%Y-%m-%d %H:%M:%S' to show the date in my preferred
## (fixed) format
if [ -e "$HOME"/.cache/sh/opt/ls/time-style ] ; then