mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
added background source and paths to increase loading time
This commit is contained in:
parent
3350c2298f
commit
aa9f453240
2 changed files with 18 additions and 0 deletions
7
lib/background.zsh
Normal file
7
lib/background.zsh
Normal 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
11
lib/path.zsh
Normal 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
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue