Download v0.1.1 of Pathwinder here.
Editing your PATH is way more difficult then it should be!
Pathwinder lets you use a point-and-click interface to add and remove folders/directories from your PATH on OS X. It automatically edits your ~/.bash_profile
for you, without you needing to meddle around with hiddle files or text editors or anything like that.
You can download the latest release from GitHub.
Non-destructively! Easy Bash PATH Editor removes paths from your PATH with a regular expression, not by actually removing anything from the file:
sed -E "s/(:|^)\/your\/path\/here(:|^)/:/g" <<< $PATH
Every time a change is made, the old version is backed up into ~/.bash_editor_backups
.
Yeah, that'll happen if you remove the first or last element of your PATH. It won't hurt anything, but I agree that it looks weird.