mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-11 02:07:04 -06:00
check for chatgpt/pyenv tool existence before applying completion/sourcing logic
This commit is contained in:
@@ -29,14 +29,18 @@ export PATH="$HOME/.local/share/bob/nvim-bin:$PATH" # Bob, the Neovim package m
|
|||||||
. "$HOME/.cargo/env" # Rustup + Cargo + Cargo-installed tools
|
. "$HOME/.cargo/env" # Rustup + Cargo + Cargo-installed tools
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" # Brew
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" # Brew
|
||||||
command -v rbenv &> /dev/null && eval "$(rbenv init -)" # rbenv for Ruby
|
command -v rbenv &> /dev/null && eval "$(rbenv init -)" # rbenv for Ruby
|
||||||
. <(chatgpt --set-completions {{ . -}}) # chatgpt completions
|
command -v chatgpt &> /dev/null && . <(chatgpt --set-completions {{ . -}}) # chatgpt completions
|
||||||
|
|
||||||
# pyenv, python version manager
|
# pyenv, python version manager
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
if [[ -d $PYENV_ROOT/bin ]]; then
|
||||||
|
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
|
if command -v pyenv &> /dev/null; then
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
# pyenv virtual-env
|
# pyenv virtual-env
|
||||||
eval "$(pyenv virtualenv-init -)"
|
eval "$(pyenv virtualenv-init -)"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# bun
|
# bun
|
||||||
export BUN_INSTALL="$HOME/.bun"
|
export BUN_INSTALL="$HOME/.bun"
|
||||||
|
|||||||
Reference in New Issue
Block a user