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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user