From 5c996d4217167d4930cfef1e6a545f83dc99b153 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Thu, 17 Nov 2022 13:29:33 +0100 Subject: [PATCH] feat: add gh CLI configuration and extensions --- .dotbot.conf.yaml | 3 ++- github/config.yml | 17 +++++++++++++++++ setup/github.sh | 6 ++++++ setup/init.sh | 3 +++ zshrc | 1 + 5 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 github/config.yml create mode 100755 setup/github.sh diff --git a/.dotbot.conf.yaml b/.dotbot.conf.yaml index c91c33e..a1b6eaf 100644 --- a/.dotbot.conf.yaml +++ b/.dotbot.conf.yaml @@ -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 diff --git a/github/config.yml b/github/config.yml new file mode 100644 index 0000000..f22fec6 --- /dev/null +++ b/github/config.yml @@ -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: diff --git a/setup/github.sh b/setup/github.sh new file mode 100755 index 0000000..62aafe0 --- /dev/null +++ b/setup/github.sh @@ -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 diff --git a/setup/init.sh b/setup/init.sh index 6b7d007..c72bbde 100755 --- a/setup/init.sh +++ b/setup/init.sh @@ -33,5 +33,8 @@ source ./ruby.sh # Golang source ./golang.sh +# GitHub CLI Extensions +source ./github.sh + # Visual Studio Code Extensions source ./vscode.sh diff --git a/zshrc b/zshrc index 4422bc8..58ad43e 100644 --- a/zshrc +++ b/zshrc @@ -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