mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
ls.fish: Replace eval
with string
This commit is contained in:
parent
f7c6426b21
commit
bb754c2085
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue