1
Fork 0
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:
TheGeneralist 2026-07-14 14:48:37 +02:00
parent aa3cbcfb5e
commit 691dfad298
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
6 changed files with 80 additions and 1 deletions

View 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:*";
};
};
}
];
}

View file

@ -34,7 +34,6 @@ in
basedpyright
black
nodejs
dart-sass
pnpm_9
]
@ -75,6 +74,7 @@ in
"/opt/homebrew/bin"
"/opt/homebrew/opt"
"$HOME/.npm-packages/bin"
"$HOME/.opencode/bin"
"$PNPM_HOME"
"$BUN_INSTALL/bin"
];

View file

@ -51,6 +51,23 @@ in {
carapace
bat
sd
glow
dust
hyperfine
tokei
procs
bandwhich
watchexec
git-absorb
ouch
xh
duf
grex
mise
mosh
])
++ optionals (pkgs ? bat-extras && pkgs.bat-extras ? core) [

View file

@ -70,6 +70,10 @@ in
extraConfig = /* 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")
}
'';
};
}

View file

@ -207,6 +207,9 @@ in
if command -sq omp
omp completions fish | source
end
if command -sq mise
mise activate fish | source
end
'';
functions = {

View file

@ -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";
}
];
}
];
};