dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 53ebb0c8908b2effde932dfaa3154b4c6a7ed177
parent a1d2d4260fec2937844cb9ad642a328910af7ef0
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Thu,  4 Jan 2018 21:33:14 -0500

Handle BSD ls in lessfilter

Diffstat:
M.lessfilter | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.lessfilter b/.lessfilter @@ -1,7 +1,12 @@ #!/bin/sh if [ -d "$1" ] then - ls -lA --color=force "$1" + if which dircolors > /dev/null 2>&1 + then + ls -lA --color=force "$1" + else + ls -lA "$1" + fi elif which pygmentize > /dev/null 2>&1 then case "$1" in