Skip to content

shell version of gh alias set #941

@vilmibm

Description

@vilmibm

This issue covers augmenting gh alias to support shell-based invocation.

What's a shell alias? It's like doing this in git:

git config --global alias.beanlog '!sh -c "git log | grep beans"'

and for us would look like

gh alias set beanissue '!sh -c "gh issue list | grep beans"'

Seeing the ! prefix on an alias would bypass any checking for correct commands, leaving that in the
hands of the user. Otherwise these should be printable and shareable and deletable just like the
other style of alias.

Considerations

  • Should have an affordance (either just a documented pattern or editor mode) for multiline alias
    expansions
  • Should generally mirror git's alias implementation

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions