Skip to content

Add an AHOY_COMMAND environment variable to each running command #165

Open

Description

@hanoii

This is so that one could maybe use that to know if it was run through ahoy or not.

I have a lot of scripts that I normally wrap around ahoy and I do this to show different helper usage if run from ahoy or directly.

Activity

  1. ocean commented on May 12, 2026

    @ocean
    Member

    @hanoii Do you mean that the AHOY_COMMAND env var will hold the name of the ahoy subcommand that is currently running, and be passed through into the env vars of the thread that is running the command? Or that the AHOY_COMMAND env var is just set to something like "true" to indicate that this command / set of commands is being run by / within ahoy ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址