claude custom commands
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
Merge a branch from the worktree.
|
||||||
|
If you're currently working on a worktree, assume that's the one I'm referring to.
|
||||||
|
|
||||||
|
Start by merging back the new main branch, since I may have made changes to it.
|
||||||
|
|
||||||
|
# Language specific:
|
||||||
|
|
||||||
|
## Rust
|
||||||
|
|
||||||
|
Ensure cargo check is happy.
|
||||||
|
Ensure clippy is happy. clean up any new warnings.
|
||||||
|
|
||||||
|
## Typescript
|
||||||
|
|
||||||
|
Ensure tsc is happy.
|
||||||
|
|
||||||
|
# Finally
|
||||||
|
|
||||||
|
Squash the commits into a single one, merge into the base branch, and delete the worktree.
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
Create a new worktree for the requested feature. keep the branch name concise, but starting with claude/.
|
||||||
|
|
||||||
|
Do all the work for the feature in the new worktree.
|
||||||
|
|
||||||
|
Once I ask you to merge:
|
||||||
|
- start by merging back the new main branch, since I may have made changes to it.
|
||||||
|
- solve any conflicts that arise.
|
||||||
|
- merge the new worktree into the main branch.
|
||||||
|
- delete the worktree.
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
home.file.".claude/commands".source = ./commands;
|
||||||
|
}
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
./dev.nix
|
./dev.nix
|
||||||
./aider.nix
|
./aider.nix
|
||||||
./cpp.nix
|
./cpp.nix
|
||||||
|
./claude
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|||||||
@@ -28,6 +28,10 @@
|
|||||||
lsof
|
lsof
|
||||||
ktlint
|
ktlint
|
||||||
croc
|
croc
|
||||||
|
|
||||||
|
# typst
|
||||||
|
typst
|
||||||
|
typstyle
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
|
|||||||
@@ -23,9 +23,13 @@
|
|||||||
tab_bar_style = "powerline";
|
tab_bar_style = "powerline";
|
||||||
tab_powerline_style = "slanted";
|
tab_powerline_style = "slanted";
|
||||||
tab_title_template = "{tab.active_wd.split('/')[-1]}{' :{}'.format(num_windows) if num_windows > 1 else ''}";
|
tab_title_template = "{tab.active_wd.split('/')[-1]}{' :{}'.format(num_windows) if num_windows > 1 else ''}";
|
||||||
|
tab_bar_filter = "session:~ or session:^$";
|
||||||
|
|
||||||
# keys
|
# keys
|
||||||
kitty_mod = "alt";
|
kitty_mod = "alt";
|
||||||
|
|
||||||
|
# remove control
|
||||||
|
allow_remote_control = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
keybindings = {
|
keybindings = {
|
||||||
@@ -51,6 +55,8 @@
|
|||||||
"kitty_mod+j" = "neighboring_window down";
|
"kitty_mod+j" = "neighboring_window down";
|
||||||
"kitty_mod+k" = "neighboring_window up";
|
"kitty_mod+k" = "neighboring_window up";
|
||||||
"kitty_mod+l" = "neighboring_window right";
|
"kitty_mod+l" = "neighboring_window right";
|
||||||
|
|
||||||
|
"f7>/" = "goto_session";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user