mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Dissalow clanker commits
This commit is contained in:
@@ -88,6 +88,12 @@
|
||||
${lib.getExe pkgs.jq} '.remoteControlAtStartup = true' "$f" >"$f.tmp" && mv "$f.tmp" "$f"
|
||||
'';
|
||||
|
||||
xdg.configFile."claude/CLAUDE.md".text = ''
|
||||
# Global instructions
|
||||
|
||||
- NEVER EVER commit. Do not run `git commit` (or `jj commit`) and never push changes under any circumstances unless the user explicitly asks you to commit in that message.
|
||||
'';
|
||||
|
||||
xdg.configFile."claude/keybindings.json".text = builtins.toJSON {
|
||||
"$schema" = "https://www.schemastore.org/claude-code-keybindings.json";
|
||||
"$docs" = "https://code.claude.com/docs/en/keybindings";
|
||||
|
||||
@@ -109,6 +109,7 @@ EOF
|
||||
fi
|
||||
|
||||
local rev="${2:-@-}"
|
||||
jj git fetch
|
||||
jj rebase -o 'trunk()' -s "$rev"
|
||||
jj git push --named "$1=$rev"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user