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
|
||||
nvm() {
|
||||
unset -f nvm node npm
|
||||
unset -f nvm node npm gemini
|
||||
load_nvm
|
||||
nvm "$@"
|
||||
}
|
||||
|
||||
node() {
|
||||
unset -f nvm node npm
|
||||
unset -f nvm node npm gemini
|
||||
load_nvm
|
||||
node "$@"
|
||||
}
|
||||
|
||||
npm() {
|
||||
unset -f nvm node npm
|
||||
unset -f nvm node npm gemini
|
||||
load_nvm
|
||||
npm "$@"
|
||||
}
|
||||
|
||||
gemini() {
|
||||
unset -f nvm node npm gemini
|
||||
load_nvm
|
||||
gemini "$@"
|
||||
|
||||
|
||||
}
|
||||
|
||||
# ghcup
|
||||
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue