Skip to content

Add setup alias subcommand and automatic bash/zsh alias setup in v0k setup (plus version bump to 0.1.8)#4

Merged
slhmy merged 3 commits into
mainfrom
copilot/add-subcommand-for-setup
May 10, 2026
Merged

Add setup alias subcommand and automatic bash/zsh alias setup in v0k setup (plus version bump to 0.1.8)#4
slhmy merged 3 commits into
mainfrom
copilot/add-subcommand-for-setup

Conversation

Copilot AI commented May 10, 2026

Copy link
Copy Markdown
Contributor

setup currently configures AI settings only, while shell alias/function integration is manual and easy to miss. This change adds a dedicated alias setup subcommand and wires the same step into the end of v0k setup when the shell is configurable (bash/zsh).

  • CLI changes

    • Added v0k setup alias as a dedicated subcommand to install shell integration independently.
    • Extended v0k setup command dispatch to support setup subcommands.
  • Setup flow behavior

    • After interactive config is saved, v0k setup now attempts shell integration install as the final step.
    • Shell detection targets configurable Unix shells (bash, zsh) via SHELL.
  • Shell integration installation

    • Adds integration to ~/.bashrc or ~/.zshrc based on detected shell.
    • Uses idempotent append logic with integration block markers to avoid duplicate writes.
    • Prints clear status for added/already-configured/skipped cases.
  • Single-source integration template

    • Reused one shared v0k() integration function string for:
      • fix missing-command hint output
      • setup alias and setup auto-install content
    • Removes duplicated alias/function text maintenance.
  • Docs update

    • README now documents:
      • automatic shell integration during v0k setup
      • standalone v0k setup alias usage
  • Version bump (feedback follow-up)

    • Bumped version from 0.1.7 to 0.1.8 in:
      • Cargo.toml
      • npm/package.json
    • Keeps Rust crate and npm package versions aligned for release flow.
# full setup (config + alias/function install)
v0k setup

# install alias/function only
v0k setup alias

@slhmy slhmy marked this pull request as ready for review May 10, 2026 08:50
@slhmy

slhmy commented May 10, 2026

Copy link
Copy Markdown
Owner

@copilot bump version

Agent-Logs-Url: https://github.com/slhmy/v0k/sessions/bb9f6014-ef60-4c72-a701-86c24ee80f46

Co-authored-by: slhmy <31381093+slhmy@users.noreply.github.com>

Copilot AI commented May 10, 2026

Copy link
Copy Markdown
Contributor Author

@copilot bump version

Done. Bumped version from 0.1.7 to 0.1.8 in both Cargo.toml and npm/package.json in commit 15d1957.

Copilot AI changed the title Add setup alias subcommand and automatic bash/zsh alias setup in v0k setup Add setup alias subcommand and automatic bash/zsh alias setup in v0k setup (plus version bump to 0.1.8) May 10, 2026
Copilot finished work on behalf of slhmy May 10, 2026 08:53
Copilot AI requested a review from slhmy May 10, 2026 08:53
@slhmy slhmy merged commit ba3a727 into main May 10, 2026
1 check passed
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.

2 participants