From aa9f453240a902c09326604abc01875c3b33a0d2 Mon Sep 17 00:00:00 2001 From: Federico Ramallo Date: Fri, 29 Jul 2011 13:32:44 -0500 Subject: [PATCH] added background source and paths to increase loading time --- lib/background.zsh | 7 +++++++ lib/path.zsh | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 lib/background.zsh create mode 100644 lib/path.zsh diff --git a/lib/background.zsh b/lib/background.zsh new file mode 100644 index 000000000..d1768bf5a --- /dev/null +++ b/lib/background.zsh @@ -0,0 +1,7 @@ +# Appends to path arra in background to reduce load timey +# example +# path_push /usr/local +function bg_source() { + source $1 +} + diff --git a/lib/path.zsh b/lib/path.zsh new file mode 100644 index 000000000..a5c560c35 --- /dev/null +++ b/lib/path.zsh @@ -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 +}