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>
9 lines
98 B
Plaintext
9 lines
98 B
Plaintext
if which lsd &> /dev/null
|
|
then
|
|
|
|
# create a aliases
|
|
alias ls='lsd'
|
|
alias lt='lsd --tree'
|
|
|
|
fi
|