dotfiles/modules/shell/github.nix

23 lines
484 B
Nix
Raw Normal View History

{ pkgs, user, ... }: {
2022-04-28 23:20:46 +00:00
imports = [ ./git.nix ];
home-manager.users.${user} = {
programs.gh = {
enable = true;
enableGitCredentialHelper = true;
settings.git_protocol = "https";
};
2022-04-28 23:20:46 +00:00
programs.fish.shellAbbrs = {
ghr = "gh repo view -w";
gha =
"gh run list | head -1 | awk '{ print $(NF-2) }' | xargs gh run view";
grw = "gh run watch";
grf = "gh run view --log-failed";
grl = "gh run view --log";
};
2022-04-28 23:20:46 +00:00
};
}