funzioni *_feat_ensure con sourcing bashrc.before e validazione pyenv global

- pip_feat_ensure: ricarica .bashrc.before, verifica che pyenv global sia valido
  (non system, non vuoto, non versione rimossa), fallback a ultima installata
- npm_feat_ensure: ricarica .bashrc.before prima di verificare npm
- poetry: sourcing .bashrc.before in poetry_feat_missing e poetry_feat_needed
This commit is contained in:
2026-01-23 18:33:03 +01:00
parent ebe1748dd6
commit 296b354422
3 changed files with 60 additions and 4 deletions
+10
View File
@@ -24,6 +24,11 @@ function poetry_feat_added() {
}
function poetry_feat_missing() {
# Ricarica .bashrc.before per eventuali modifiche al PATH
if [ -f "$HOME/.bashrc.before" ]; then
source "$HOME/.bashrc.before"
fi
if feat_missing "pip"; then
true
else
@@ -39,6 +44,11 @@ function poetry_feat_missing() {
}
function poetry_feat_needed() {
# Ricarica .bashrc.before per eventuali modifiche al PATH
if [ -f "$HOME/.bashrc.before" ]; then
source "$HOME/.bashrc.before"
fi
feat_needed "poetry"
FEAT="$1"
if ! poetry_initialized; then