mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-19 08:45:36 +00:00
fix a little script loading
This commit is contained in:
parent
2dc6c34ae1
commit
cf8e484853
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
if iscmd pyenv; then
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
export RTX_SHELL=zsh
|
export RTX_SHELL=zsh
|
||||||
|
|
||||||
|
if iscmd rtx; then
|
||||||
|
|
||||||
rtx() {
|
rtx() {
|
||||||
local command
|
local command
|
||||||
command="${1:-}"
|
command="${1:-}"
|
||||||
|
@ -32,3 +34,4 @@ typeset -ag chpwd_functions;
|
||||||
if [[ -z "${chpwd_functions[(r)_rtx_hook]+1}" ]]; then
|
if [[ -z "${chpwd_functions[(r)_rtx_hook]+1}" ]]; then
|
||||||
chpwd_functions=( _rtx_hook ${chpwd_functions[@]} )
|
chpwd_functions=( _rtx_hook ${chpwd_functions[@]} )
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue