CAMEL-23226: Enhance Shell with alias persistence and init script support#22166
Open
CAMEL-23226: Enhance Shell with alias persistence and init script support#22166
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add PosixCommandGroup (cd, ls, grep, cat, head, tail, etc.), InteractiveCommandGroup (nano, less, ttop), and enable script/variable commands for a richer shell experience. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…port - Add DefaultAliasManager with persistence at ~/.camel-jbang-aliases for persistent alias/unalias commands - Add init script support via ~/.camel-jbang-init file - Remove scriptCommands(true) which requires a scriptRunner to function Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
Contributor
|
🧪 CI tested the following changed modules:
All tested modules (26 modules)
|
This was referenced Mar 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JIRA: CAMEL-23226
Summary
Builds on top of PR #22161 (JLine 4 shell migration) to add:
DefaultAliasManagerwith persistence file at~/.camel-jbang-aliases, giving usersalias/unaliascommands to define shortcuts (e.g.,alias ll="ls -la")~/.camel-jbang-init.jlineon shell startup for custom configuration (aliases, variables, key bindings)Test plan
camel shelland verify alias/unalias commands work~/.camel-jbang-init.jlinewith an alias and verify it loads on shell start