ColorEchoForShell
ColorEchoForShell copied to clipboard
feat: add tcsh support
User description
See Issue #2
PR Type
Enhancement
Description
-
Add tcsh shell support with alias-based color functions
-
Refactor generator to support one-line function declarations
-
Update existing shell outputs to use condensed format
-
Fix character escaping for cross-shell compatibility
Diagram Walkthrough
flowchart LR
A["Generator Script"] --> B["Shell Variables"]
B --> C["tcsh Aliases"]
B --> D["Other Shell Functions"]
C --> E["ColorEcho.tcsh"]
D --> F["Updated Shell Files"]
G["Color Table"] --> A
File Walkthrough
| Relevant files | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Enhancement |
| ||||||||||
| Formatting |
| ||||||||||
| Tests |
|
Summary by CodeRabbit
- New Features
- Added tcsh support and unified per-shell handling across sh, bash, zsh, ksh, fish, tcsh.
- Refactor
- Reworked per-shell templates and standardized inline generation for color, rainbow, and reset outputs; adjusted temporary/redirection semantics.
- Bug Fixes
- Replaced fragile extraction with a robust loop for color table processing.
- Tests
- Added a tcsh test harness and appended final colored-output checks in bash, fish, ksh, sh, and zsh test scripts.
- Chores
- Updated build/dist flow for the expanded shell set.