Seeing if this makes the experience with $PATH more like I'd expect

This commit is contained in:
Dan Buch
2013-06-12 08:50:10 -04:00
parent 45a4d1ff42
commit 033c72a113
3 changed files with 9 additions and 3 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
function gvm_export_path() {
export PATH="$GVM_ROOT/bin:`echo "$PATH" | tr ":" "\n" | grep -v '^$' | egrep -v "$GVM_ROOT/(pkgsets|gos|bin)" | tr "\n" ":" | sed 's/:*$//'`"
export GVM_PATH_BACKUP="$PATH"
}