added background source and paths to increase loading time

This commit is contained in:
Federico Ramallo 2011-07-29 13:32:44 -05:00
commit aa9f453240
2 changed files with 18 additions and 0 deletions

7
lib/background.zsh Normal file
View file

@ -0,0 +1,7 @@
# Appends to path arra in background to reduce load timey
# example
# path_push /usr/local
function bg_source() {
source $1
}

11
lib/path.zsh Normal file
View file

@ -0,0 +1,11 @@
# Appends to path arra in background to reduce load timey
# example
# path_push /usr/local
function path_push() {
export PATH=$PATH:$1 &>/dev/null
}
# Prepends to path array in background to reduce load time
function path_unshift() {
export PATH=$1:$PATH &>/dev/null
}