mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-14 16:32:56 +00:00
417623965e
also change theme to colorscheme
37 lines
968 B
Nix
37 lines
968 B
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
home-manager.users.${config.user} = {
|
|
|
|
programs.gh =
|
|
lib.mkIf config.home-manager.users.${config.user}.programs.git.enable {
|
|
enable = true;
|
|
enableGitCredentialHelper = true;
|
|
settings.git_protocol = "https";
|
|
};
|
|
|
|
programs.fish =
|
|
lib.mkIf config.home-manager.users.${config.user}.programs.gh.enable {
|
|
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";
|
|
};
|
|
functions = {
|
|
repos = {
|
|
description = "Clone GitHub repositories";
|
|
argumentNames = "organization";
|
|
body = ''
|
|
set directory (gh-repos $organization)
|
|
and cd $directory
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
}
|