mirror of
https://github.com/thegeneralist01/config.git
synced 2026-07-21 19:05:19 +02:00
tooling: add new exciting tools!
This commit is contained in:
parent
aa3cbcfb5e
commit
691dfad298
6 changed files with 80 additions and 1 deletions
36
modules/common/jujutsu.nix
Normal file
36
modules/common/jujutsu.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) getExe;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
home-manager.sharedModules = [
|
||||||
|
{
|
||||||
|
programs.jujutsu = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
user = {
|
||||||
|
name = "TheGeneralist";
|
||||||
|
email = "180094941+thegeneralist01@users.noreply.github.com";
|
||||||
|
};
|
||||||
|
|
||||||
|
ui = {
|
||||||
|
default-command = "log";
|
||||||
|
diff-formatter = [ (getExe pkgs.difftastic) "--color=always" ];
|
||||||
|
graph.style = "curved";
|
||||||
|
pager = ":builtin";
|
||||||
|
};
|
||||||
|
|
||||||
|
aliases = {
|
||||||
|
".." = [ "edit" "@-" ];
|
||||||
|
",," = [ "edit" "@+" ];
|
||||||
|
tug = [ "bookmark" "set" "main" "-r" "@-" ];
|
||||||
|
ship = [ "git" "push" "--bookmark" "main" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
remotes.origin.auto-track-bookmarks = "glob:*";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -34,7 +34,6 @@ in
|
||||||
basedpyright
|
basedpyright
|
||||||
black
|
black
|
||||||
|
|
||||||
nodejs
|
|
||||||
dart-sass
|
dart-sass
|
||||||
pnpm_9
|
pnpm_9
|
||||||
]
|
]
|
||||||
|
|
@ -75,6 +74,7 @@ in
|
||||||
"/opt/homebrew/bin"
|
"/opt/homebrew/bin"
|
||||||
"/opt/homebrew/opt"
|
"/opt/homebrew/opt"
|
||||||
"$HOME/.npm-packages/bin"
|
"$HOME/.npm-packages/bin"
|
||||||
|
"$HOME/.opencode/bin"
|
||||||
"$PNPM_HOME"
|
"$PNPM_HOME"
|
||||||
"$BUN_INSTALL/bin"
|
"$BUN_INSTALL/bin"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,23 @@ in {
|
||||||
carapace
|
carapace
|
||||||
bat
|
bat
|
||||||
|
|
||||||
|
sd
|
||||||
|
glow
|
||||||
|
dust
|
||||||
|
hyperfine
|
||||||
|
tokei
|
||||||
|
procs
|
||||||
|
bandwhich
|
||||||
|
|
||||||
|
watchexec
|
||||||
|
git-absorb
|
||||||
|
ouch
|
||||||
|
xh
|
||||||
|
duf
|
||||||
|
grex
|
||||||
|
|
||||||
|
mise
|
||||||
|
|
||||||
mosh
|
mosh
|
||||||
])
|
])
|
||||||
++ optionals (pkgs ? bat-extras && pkgs.bat-extras ? core) [
|
++ optionals (pkgs ? bat-extras && pkgs.bat-extras ? core) [
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,10 @@ in
|
||||||
|
|
||||||
extraConfig = /* nu */ ''
|
extraConfig = /* nu */ ''
|
||||||
use ${pkgs.writeTextDir "omp-completions.nu" (readFile ./omp-completions.nu)}/omp-completions.nu *
|
use ${pkgs.writeTextDir "omp-completions.nu" (readFile ./omp-completions.nu)}/omp-completions.nu *
|
||||||
|
|
||||||
|
if (which mise | is-not-empty) {
|
||||||
|
$env.PATH = ($env.PATH | prepend $"($env.HOME)/.local/share/mise/shims")
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -207,6 +207,9 @@ in
|
||||||
if command -sq omp
|
if command -sq omp
|
||||||
omp completions fish | source
|
omp completions fish | source
|
||||||
end
|
end
|
||||||
|
if command -sq mise
|
||||||
|
mise activate fish | source
|
||||||
|
end
|
||||||
'';
|
'';
|
||||||
|
|
||||||
functions = {
|
functions = {
|
||||||
|
|
|
||||||
|
|
@ -578,6 +578,25 @@ let
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
description = "Hyper+9 copies an orchestrate prompt into the clipboard";
|
||||||
|
manipulators = [
|
||||||
|
{
|
||||||
|
from = {
|
||||||
|
key_code = "9";
|
||||||
|
modifiers = {
|
||||||
|
mandatory = hyperModifiers;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
to = [
|
||||||
|
{
|
||||||
|
shell_command = "printf '%s' $'/goal set\\n\\nI had this on my today\\'s agenda regarding archivr feat impl\\'s or bug fixes:\\n...\\n\\nThis is going to be a PR. I like atomic commits. (I reckon you won\\'t be needing many commits for this, since it\\'s a small task, I assume.)\\n\\nIf you have any questions before you start (i.e. to decide on something), then shoot!\\n\\nOtherwise, you\\'re allowed to Orchestrate and delegate if/when necessary.\\nUse agents and/or skills for suited tasks (design/planning/tests/etc.), if needed.' | pbcopy";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
type = "basic";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue