mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-27 09:48:36 -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
|