ls.fish: Replace eval with string

This commit is contained in:
Fabian Homborg 2016-09-08 00:29:01 +02:00
parent f7c6426b21
commit bb754c2085

View file

@ -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