mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 14:44:57 +08:00
11 lines
No EOL
339 B
Bash
Executable file
11 lines
No EOL
339 B
Bash
Executable file
#!/bin/bash
|
|
current_dir=$(pwd)
|
|
voice_db="$HOME/.claude/voice-db.json"
|
|
|
|
# Create voice database if it doesn't exist
|
|
if [ ! -f "$voice_db" ]; then
|
|
echo "{}" > "$voice_db"
|
|
fi
|
|
|
|
jq --arg dir "$current_dir" '.[$dir] = true' "$voice_db" > /tmp/voice-db-temp.json && mv /tmp/voice-db-temp.json "$voice_db"
|
|
echo "Voice enabled for $current_dir" |