FollieHiyuki-dotfiles/home/.config/fish/functions/pathclean.fish
2021-02-13 19:28:59 +03:00

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