mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-29 18:58:28 -05:00
4 lines
161 B
Fish
4 lines
161 B
Fish
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
|