replace ykrun with runbg for background command execution

... to solve the nvm-sh environment issue.(mostly vscode)

NOTE: may also import other envvars, tbc.
This commit is contained in:
2025-12-16 02:21:20 +08:00
parent b4932ef737
commit 3446d3d97e
6 changed files with 213 additions and 13 deletions

8
.zshrc
View File

@@ -149,14 +149,6 @@ export GPG_TTY=$TTY
alias noproxy='env -u http_proxy -u https_proxy'
alias ykls='systemctl --user status YukiLauncher.slice'
alias yksuspend='systemctl --user freeze YukiLauncher.slice'
alias ykcout='systemctl --user thaw YukiLauncher.slice'
alias ykexit='systemctl --user stop YukiLauncher.slice'
alias susp="systemctl --user freeze"
alias cont="systemctl --user thaw"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion