rustup adds the .cargo/env script for to shell environment dot files like .profile, .bashrc or .zshrc
On my build environment I don't need this.
It is posible to tell rustup not to update .profile or other dot files?
Or is there a command to cleanup this changes safely?
You can configure this during rustup installation. With curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path rustup will not touch any of those files.