From a34705d37a23f2bbd1ea832796245145ebb8fb25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Tue, 31 Oct 2023 14:05:09 +0100 Subject: [PATCH] Added the gh-cli into a Update-pkg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .local/bin/Update-pkg | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.local/bin/Update-pkg b/.local/bin/Update-pkg index 1b923d4..3de52bd 100755 --- a/.local/bin/Update-pkg +++ b/.local/bin/Update-pkg @@ -242,6 +242,14 @@ function install_speedtest() { pip3 install speedtest-cli $PIPEXTPRE } +function install_gh_cli() { + if [[ "$(uname)" == "Darwin" ]]; then + brew install github/gh/gh + elif [[ "$(uname -r)" =~ "gentoo" ]]; then + sudo emerge dev-util/github-cli + fi +} + function main() { command_start update_pip command_start install_neovim_module_for_python @@ -266,6 +274,7 @@ function main() { command_start install_spotifydl command_start install_awscli command_start install_speedtest + command_start install_gh_cli command_start update }