Skip to content

[Feature Request]: Inherit Aliases from Shell #39

Description

@HeyItsJono

I was wondering if you could implement compatibility with shell aliases. I frequently run long commands that I've set up aliases for out of convenience, but trying to use these with hap run -- *alias* *argument* fails immediately with hap logs --stderr *job* giving /bin/bash: line 1: *alias*: command not found.

For example, with an alias:
image

Without the alias:
image

I think this could be achieved by having hap run source ~/.bashrc under the hood. If I do hap run -- source ~/.bashrc && *alias* *argument* things run successfully. Maybe this could be a config flag?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions