mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-25 16:58:38 -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
|