add current path
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user