add current path

This commit is contained in:
ville rantanen
2016-02-10 20:49:44 +02:00
parent 6e8b2bf3e1
commit 1fecc5be75

View File

@@ -356,3 +356,10 @@ function set_term_title {
echo -e '\033k'$1'\033\\'
}
}
function path_add_current {
PATH=$( pwd ):$PATH
PATH=$( echo $PATH | awk -F: '{for (i=1;i<=NF;i++) { if ( !x[$i]++ ) printf("%s:",$i); }}' | sed 's,:\+$,,g' )
export PATH
echo PATH=$PATH
}