add fish and zsh prompt support#532
Conversation
✅ Deploy Preview for jumpstarter-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
WalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant Utils as launch_shell
participant Shell
Caller->>Utils: Call launch_shell(host, context, allow, unsafe, command)
Utils->>Utils: Determine shell type from SHELL env
alt command is provided
Utils->>Shell: Execute command with common_env
else bash shell
Utils->>Shell: Launch bash with --norc, --noprofile, PS1 prompt
else fish shell
Utils->>Shell: Launch fish with custom fish_prompt via --init-command
else zsh shell
Utils->>Shell: Launch zsh with --no-rcs, PS1 prompt
else other shell
Utils->>Shell: Launch shell with common_env
end
Shell-->>Utils: Return exit code
Utils-->>Caller: Return exit code
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🪛 Pylint (3.3.7)packages/jumpstarter/jumpstarter/common/utils.py[refactor] 78-114: Unnecessary "elif" after "return", remove the leading "el" from "elif" (R1705) [refactor] 75-75: Consider using 'with' for resource-allocating operations (R1732) [refactor] 113-113: Consider using 'with' for resource-allocating operations (R1732) 🔇 Additional comments (7)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
mangelajo
left a comment
There was a problem hiding this comment.
Nice, I probably need to do the same for zsh
Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
I thought zsh would respect PS1 but seems like it doesn't work well because of the escape characters, so added it separately |
Summary by CodeRabbit