Compare commits

..

3 Commits

Author SHA1 Message Date
Noah Masur
0f4914db95 gh-cli overlay for log view on composite actions
can be removed with the next release of gh-cli
2023-06-16 08:00:42 -04:00
Noah Masur
25e56b7421 git-push-upstream no longer needed 2023-06-16 08:00:07 -04:00
Noah Masur
a6ec04db7e fixes to build on darwin 2023-06-16 07:59:06 -04:00
8 changed files with 15 additions and 12 deletions

View File

@ -123,6 +123,7 @@
(import ./overlays/neovim-plugins.nix inputs)
(import ./overlays/lib.nix)
(import ./overlays/calibre-web.nix)
(import ./overlays/gh-cli.nix)
];
# System types to support.

View File

@ -31,7 +31,7 @@ darwin.lib.darwinSystem {
neovim.enable = true;
mail.enable = true;
mail.aerc.enable = true;
mail.himalaya.enable = true;
mail.himalaya.enable = false;
kitty.enable = true;
discord.enable = true;
firefox.enable = true;

View File

@ -7,7 +7,6 @@
./firefox.nix
./kitty.nix
./media.nix
./nautilus.nix
./obsidian.nix
./qbittorrent.nix
./slack.nix

View File

@ -1,4 +0,0 @@
set -l branch (git branch 2>/dev/null | grep '^\*' | colrm 1 2)
and set -l command "git push --set-upstream origin $branch"
and commandline -r $command
and commandline -f execute

View File

@ -51,7 +51,6 @@ in {
gcae = "git commit --amend";
gu = "git pull";
gp = "git push";
gpp = "git-push-upstream";
gl = "git log --graph --decorate --oneline -20";
gll = "git log --graph --decorate --oneline";
gco = "git checkout";
@ -114,10 +113,6 @@ in {
git-history = {
body = builtins.readFile ./fish/functions/git-history.fish;
};
git-push-upstream = {
description = "Create upstream branch";
body = builtins.readFile ./fish/functions/git-push-upstream.fish;
};
uncommitted = {
description = "Find uncommitted git repos";
body = builtins.readFile ./fish/functions/uncommitted.fish;

View File

@ -1,5 +1,5 @@
{ ... }: {
imports = [ ./calibre.nix ];
imports = [ ./calibre.nix ./nautilus.nix ];
}

12
overlays/gh-cli.nix Normal file
View File

@ -0,0 +1,12 @@
# Testing: https://github.com/cli/cli/issues/5011#issuecomment-1576931518
_final: prev: {
gh = prev.gh.overrideAttrs (old: {
src = prev.fetchFromGitHub {
owner = "cli";
repo = "cli";
rev = "420f63c3ec660d27182b713bd18459e7376f0a7a";
sha256 = "sha256-ik4YCQBTr9637dofrh/AcgoOBa8Bx9F+brUMpC8u5U8=";
};
});
}