diff --git a/share/functions/ls.fish b/share/functions/ls.fish index ec25fdfce..2da4d6b81 100644 --- a/share/functions/ls.fish +++ b/share/functions/ls.fish @@ -21,8 +21,7 @@ if command ls --version 1>/dev/null 2>/dev/null break end end - echo $colorfile - eval (dircolors -c $colorfile | sed 's/>&\/dev\/null$//') + set -gx LS_COLORS (dircolors -c $colorfile | string replace -r 'setenv LS_COLORS \'(.*)\'' '$1') end end