dot-files/gvm/scripts/function/gvm_export_path

7 lines
229 B
Bash

#!/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"
}