GH Joe
Summary
GH Joe is a managed list of GitHub CLI aliases.
Main idea is that each command should be represented by shortest possible sequence of characters (an alias) where the alias does not have to be remembered but it can be mnemotechnically derived from the full command.
For a full list of aliases please see aliases.yml.
Installation
Import list of aliases to your GitHub CLI config file:
curl https://raw.githubusercontent.com/josefpihrt/ghjoe/main/aliases.yml | gh alias import -
Optionally, overwrite existing aliases:
curl https://raw.githubusercontent.com/josefpihrt/ghjoe/main/aliases.yml | gh alias import --clobber -
Commands Aliases
| Alias | Command |
|---|---|
a | alias |
b | browse |
c | codespace |
e | release |
g | gist |
h | auth |
i | issue |
j | project |
k | cache |
l | label |
n | run |
o | config |
p | pr |
r | repo |
s | search |
t | secret |
u | status |
v | variable |
w | workflow |
x | extension |
Aliases Creation Rules
Each alias is created according to several simple rules:
Each root command is represented by a single letter.
- For example
issueis represented byi.
- For example
Each subcommand/parameter/value is represented by combination of first letter of words it consists of.
- For example subcommand
release delete-assetis represented byrda. - For example parameter
--exclude-pre-releasesis represented byepr.
- For example subcommand
Parameters are sorted in alphabetical order.
- For example command
pr create --assignee @me --draft --titleis represented bypcamdt.
- For example command