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
This issue covers augmenting
gh aliasto support shell-based invocation.What's a shell alias? It's like doing this in git:
and for us would look like
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
expansions