mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 16:21:15 -03:00
ls.fish: Replace eval with string
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user