Replace 'if (command -v x &>/dev/null); then' with 'if command -v x &>/dev/null; then' across completion.d, rc.d and profile.d. Parentheses forced a subshell fork for every 'if' check, which is unnecessary overhead since command -v runs fine in the current shell. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
11 lines
380 B
Plaintext
11 lines
380 B
Plaintext
# INFO:
|
|
# vivid is a generator for the LS_COLORS environment variable that controls the colorized output of ls, tree, fd, bfs, dust and many other tools.
|
|
# ➜ https://github.com/sharkdp/vivid
|
|
# 💡Use command `vivid themes` to see available themes
|
|
|
|
if command -v vivid &>/dev/null; then
|
|
THEME=tokyonight-moon
|
|
LS_COLORS="$(vivid generate ${THEME})"
|
|
export LS_COLORS
|
|
fi
|