mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-04 21:28:21 -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
|