This repository has been archived on 2022-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
|
function pathclean --description "Clean up PATH variable"
|
|
set PATH (printf "%s" "$PATH" | awk -v RS=':' '!a[$1]++ { if (NR > 1) printf RS; printf $1 }')
|
|
end
|