aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d/ls.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/profile.d/ls.sh')
-rw-r--r--sh/profile.d/ls.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/sh/profile.d/ls.sh b/sh/profile.d/ls.sh
deleted file mode 100644
index 0c3754e9..00000000
--- a/sh/profile.d/ls.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-# Test that we have metadata about what options this system's ls(1) supports,
-# and try to create it if not
-(
- # Create a directory to hold metadata about ls(1)
- lcd=$HOME/.cache/ls
- if ! [ -d "$lcd" ] ; then
- mkdir -p -- "$lcd" || exit
- fi
-
- # Write ls(1)'s --help output to a file, even if it's empty
- if ! [ -f "$lcd"/help ] ; then
- ls --help >"$lcd"/help 2>/dev/null || exit
-
- # Iterate through some useful options and create files to show they're
- # available
- if grep -q -- --color "$lcd"/help ; then
- touch -- "$lcd"/color || exit
- fi
- fi
-)