From c4c811fae72af26419986ee8c805d20ad3bcd723 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sat, 16 Mar 2024 10:42:11 +0300 Subject: [PATCH] Use gh copilot cli --- modules/git.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/git.nix b/modules/git.nix index aebf81d..9aa147d 100644 --- a/modules/git.nix +++ b/modules/git.nix @@ -1,4 +1,4 @@ -{ lib, ulib, pkgs, ... }: with ulib; merge +{ lib, ulib, pkgs, ... }: with ulib; merge3 (homeConfiguration { programs.nushell.shellAliases = { @@ -125,6 +125,18 @@ }; }) +(desktopHomeConfiguration { + programs.nushell.shellAliases = { + "??" = "gh copilot suggest --target shell"; + "gh?" = "gh copilot suggest --target gh"; + "git?" = "gh copilot suggest --target git"; + }; + + programs.gh = enabled { + settings.git_protocol = "ssh"; + }; +}) + (systemPackages (with pkgs; [ git-absorb tig