Skip to content

Add persistent terminal alias emulation - #29

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/terminal-emulation-feature-ffac
Draft

Add persistent terminal alias emulation#29
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/terminal-emulation-feature-ffac

Conversation

@cursor

@cursor cursor Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Issue

Title

Make terminal aliases functional and persistent

Problem

The terminal command surface advertised alias and which, but alias only printed a static example and user-defined shortcuts could not be created, executed, or persisted. This left a common shell-emulation workflow missing from the portfolio terminal.

Acceptance Criteria

  • Users can create aliases with alias name='command'.
  • alias lists saved aliases and alias name inspects one alias.
  • Aliases expand before command execution, preserve extra arguments, and work in supported pipe segments.
  • which reports aliases before built-in commands.
  • unalias name ... and unalias -a remove aliases.
  • Aliases persist across page reloads in localStorage.

Changes

  • Added tested alias parsing, formatting, and expansion helpers with loop detection.
  • Wired persistent alias/unalias management into the browser terminal runtime, command completion, which, and pipeline execution.
  • Documented alias usage in README and terminal help/man entries.

Verification

  • pnpm check passed: lint, format check, 71 tests with coverage, and Astro build.
  • Manual browser walkthrough recorded: created aliases, executed an alias, used one in a pipeline, reloaded to verify persistence, then removed aliases.
Open in Web View Automation 

Co-authored-by: Jakob Langtry <jjalangtry@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant