Add gemini lazy load
This commit is contained in:
parent
a041bb37be
commit
66b9b39499
1 changed files with 11 additions and 3 deletions
14
home/.zshrc
14
home/.zshrc
|
@ -85,23 +85,31 @@ load_nvm() {
|
||||||
|
|
||||||
# Create placeholder functions that load nvm once, then call the real command
|
# Create placeholder functions that load nvm once, then call the real command
|
||||||
nvm() {
|
nvm() {
|
||||||
unset -f nvm node npm
|
unset -f nvm node npm gemini
|
||||||
load_nvm
|
load_nvm
|
||||||
nvm "$@"
|
nvm "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
node() {
|
node() {
|
||||||
unset -f nvm node npm
|
unset -f nvm node npm gemini
|
||||||
load_nvm
|
load_nvm
|
||||||
node "$@"
|
node "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
npm() {
|
npm() {
|
||||||
unset -f nvm node npm
|
unset -f nvm node npm gemini
|
||||||
load_nvm
|
load_nvm
|
||||||
npm "$@"
|
npm "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gemini() {
|
||||||
|
unset -f nvm node npm gemini
|
||||||
|
load_nvm
|
||||||
|
gemini "$@"
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
# ghcup
|
# ghcup
|
||||||
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
|
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue