feat: add gh CLI configuration and extensions

This commit is contained in:
Stefan Imhoff
2022-11-17 13:29:33 +01:00
parent b86e0c9f79
commit 5c996d4217
5 changed files with 29 additions and 1 deletions

View File

@@ -9,11 +9,12 @@
~/.ag: ag
~/.asdfrc: asdf/asdfrc
~/.config/base16-shell: .base16-shell
~/.config/svim: svim
~/.config/gh/config.yml: github/config.yml
~/.config/karabiner: karabiner
~/.config/kitty: kitty
~/.config/nvim: nvim
~/.config/starship.toml: starship.toml
~/.config/svim: svim
~/.config/tmuxinator: tmuxinator
~/.ctags: ctags
~/.default-gems: asdf/default-gems

17
github/config.yml Normal file
View File

@@ -0,0 +1,17 @@
# What protocol to use when performing git operations. Supported values: ssh, https
git_protocol: https
# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.
editor:
# When to interactively prompt. This is a global config that cannot be overridden by hostname. Supported values: enabled, disabled
prompt: enabled
# A pager program to send command output to, e.g. "less". Set the value to "cat" to disable the pager.
pager:
# Aliases allow you to create nicknames for gh commands
aliases:
co: pr checkout
xds: 'pr list --label="team: xds-web"'
me: pr list --assignee @me
# The path to a unix socket through which send HTTP connections. If blank, HTTP traffic will be handled by net/http.DefaultTransport.
http_unix_socket:
# What web browser gh should use when opening URLs. If blank, will refer to environment.
browser:

6
setup/github.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
gh extension install thatvegandev/gh-eco
gh extension install gennaro-tedesco/gh-s
gh extension install mislav/gh-branch
gh extension install seachicken/gh-poi

View File

@@ -33,5 +33,8 @@ source ./ruby.sh
# Golang
source ./golang.sh
# GitHub CLI Extensions
source ./github.sh
# Visual Studio Code Extensions
source ./vscode.sh

1
zshrc
View File

@@ -291,6 +291,7 @@ antigen bundle extract
antigen bundle fzf
antigen bundle gem
antigen bundle git
antigen bundle gh
antigen bundle git-extras
antigen bundle gitignore
antigen bundle gulp