ShellScript
# 增加自定义 PATH
DIRS=(
"."
"./vendor/bin"
"$QNNP_HOME/bin"
"$QNNP_HOME/bin/utils"
"$HOME/.local/bin"
"$HOME/bin"
)
PATH="$(IFS=:; printf "%s" "${DIRS[*]}"):$PATH"
# 去重
export PATH=${$(printf %s "$PATH" | tr ':' '\n' | awk '!a[$0]++' | tr '\n' ':')%:}