From e2816bf6f6435bbf17981289d53db08067ba108f Mon Sep 17 00:00:00 2001 From: rob Date: Mon, 29 Dec 2025 23:47:11 -0400 Subject: [PATCH] Make source ~/.bashrc instruction more prominent after provider install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Always show the IMPORTANT message about refreshing PATH, with clear step numbering that makes source ~/.bashrc step 1. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/smarttools/cli.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/smarttools/cli.py b/src/smarttools/cli.py index 41d0086..e3450e6 100644 --- a/src/smarttools/cli.py +++ b/src/smarttools/cli.py @@ -491,23 +491,21 @@ def cmd_providers(args): if new_paths: os.environ["PATH"] = ":".join(new_paths) + ":" + current_path - print() - print(f"Added to PATH (for this session): {', '.join(new_paths)}") - print() - print("To use in your shell, run one of:") - print(" source ~/.bashrc") - print(" # or start a new shell") print() print("Installation completed!") print() + print("IMPORTANT: Refresh your shell PATH before continuing:") + print(" source ~/.bashrc") + print() print(f"Next steps:") - print(f" 1. {info['setup']}") + print(f" 1. source ~/.bashrc (required!)") + print(f" 2. {info['setup']}") if info.get('post_install_note'): - print(f" 2. {info['post_install_note']}") - print(f" 3. Test with: smarttools providers test {selected}") + print(f" 3. {info['post_install_note']}") + print(f" 4. Test with: smarttools providers test {selected}") else: - print(f" 2. Test with: smarttools providers test {info['variants'][0] if info['variants'] else selected}") + print(f" 3. Test with: smarttools providers test {info['variants'][0] if info['variants'] else selected}") else: print() print(f"Installation failed (exit code {result.returncode})")