diff --git a/home/base/core/git.nix b/home/base/core/git.nix index a1b9d5ed..2d450955 100644 --- a/home/base/core/git.nix +++ b/home/base/core/git.nix @@ -13,8 +13,27 @@ rm -f ${config.home.homeDirectory}/.gitconfig ''; - home.packages = with pkgs; [ - ]; + # GitHub CLI tool + # https://cli.github.com/manual/ + programs.gh = { + enable = true; + settings = { + git_protocol = "ssh"; + prompt = "enabled"; + aliases = { + co = "pr checkout"; + pv = "pr view"; + }; + }; + hosts = { + "github.com" = { + "users" = { + "ryan4yin" = null; + }; + "user" = "ryan4yin"; + }; + }; + }; programs.git = { enable = true; diff --git a/home/linux/gui/base/misc.nix b/home/linux/gui/base/misc.nix index 8bc53d25..f48cb4ca 100644 --- a/home/linux/gui/base/misc.nix +++ b/home/linux/gui/base/misc.nix @@ -24,11 +24,6 @@ # wechat-uos ]; - # GitHub CLI tool - programs.gh = { - enable = true; - }; - # allow fontconfig to discover fonts and configurations installed through home.packages # Install fonts at system-level, not user-level fonts.fontconfig.enable = false;