Guard Docker init scripts with existence checks
Prevents errors when Docker Desktop is not installed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2
bashrc
2
bashrc
@@ -3,7 +3,7 @@ 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
|
||||
|
||||
source "$HOME/.docker/init-bash.sh" || true # Added by Docker Desktop
|
||||
[[ -f "$HOME/.docker/init-bash.sh" ]] && source "$HOME/.docker/init-bash.sh"
|
||||
|
||||
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
|
||||
# export PATH="$PATH:$HOME/.rvm/bin"
|
||||
|
||||
Reference in New Issue
Block a user