Compare commits

..

4 Commits

Author SHA1 Message Date
2feb9847be Ignore claude everything 2025-10-04 12:07:19 +02:00
79d57bf613 Claude plugins? 2025-10-04 12:06:54 +02:00
e776ea47dd Add a tmux script for running A single command once 2025-10-04 12:06:38 +02:00
3d2b82eb7b Add claude settings and sync 2025-10-04 12:05:28 +02:00
5 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
{
"repositories": {}
}

8
.claude/settings.json Normal file
View File

@@ -0,0 +1,8 @@
{
"env": {
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-4.5-air",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-4.6",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-4.6"
},
"alwaysThinkingEnabled": true
}

7
.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
.claude/ide
.claude/file-history
.claude/shell-snapshots
.claude/statsig
.claude/todos
.claude/history.jsonl
.claude/projects

View File

@@ -1,3 +1,6 @@
- source: lazygit
target: ~/AppData/Local/lazygit
delete: true
- source: .claude
target: ~/.claude
delete: true

46
tmux-oneshot.sh Normal file
View File

@@ -0,0 +1,46 @@
#!/bin/bash
# tmux-oneshot.sh
# Run a single command in a tmux session
SESSION=""
ATTACH_SESSION=0
while getopts "t:a" opt; do
case "$opt" in
t) SESSION="$OPTARG" ;;
a) ATTACH_SESSION=1 ;;
\?) echo "Usage: $0 [-t <session_name>] [-a] <command>" >&2
exit 1 ;;
esac
done
shift $((OPTIND-1))
if [ $# -eq 0 ]; then
echo "Error: Command is required" >&2
echo "Usage: $0 [-t <session_name>] [-a] <command>" >&2
exit 1
fi
COMMAND="$*"
# Use first word of command as session name if -t not provided
if [ -z "$SESSION" ]; then
SESSION=$(echo "$COMMAND" | awk '{print $1}')
fi
# Create session if missing
if ! tmux has-session -t $SESSION 2>/dev/null; then
echo "Creating tmux session: $SESSION"
tmux new-session -d -s $SESSION
else
echo "Session $SESSION exists, reusing..."
fi
# Send command to session
echo "Running command: $COMMAND"
tmux send-keys -t $SESSION "$COMMAND" C-m
if [ $ATTACH_SESSION -eq 1 ]; then
echo "Attaching to tmux session: $SESSION"
tmux attach -t $SESSION
fi