logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

gh-alias-import - Import aliases from a YAML file

Description

       Import aliases from the contents of a YAML file.

       Aliases should be defined as a map in YAML, where the keys represent aliases and the values represent the
       corresponding expansions. An example file should look like the following:

       bugs: issue list --label=bug
       igrep: '!gh issue list --label="$1" | grep "$2"'
       features: |-
           issue list
           --label=enhancement

       Use - to read aliases (in YAML format) from standard input.

       The  output  from ghaliaslist can be used to produce a YAML file containing your aliases, which you can
       use to import them from one machine to another. Run ghhelpaliaslist to learn more.

Example

       # Import aliases from a file
       $ gh alias import aliases.yml

       # Import aliases from standard input
       $ gh alias import -

Name

       gh-alias-import - Import aliases from a YAML file

Options

--clobber
              Overwrite existing aliases of the same name

See Also

gh-alias(1)

                                                    Jan 2025                                  GH-ALIAS-IMPORT(1)

Synopsis

ghaliasimport[<filename>|-][flags]

See Also