Files
code-tools/tf/scripts/cursor-setup.sh
2025-09-19 18:31:25 +00:00

28 lines
612 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
CURSOR_DIR="$HOME/.cursor-server"
mkdir -p "$CURSOR_DIR/data/User" "$CURSOR_DIR/extensions"
cat <<'JSON' > "$CURSOR_DIR/data/User/settings.json"
{
"editor.formatOnSave": true,
"editor.tabSize": 2,
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
"git.enableSmartCommit": true,
"terminal.integrated.defaultProfile.linux": "bash"
}
JSON
cat <<'JSON' > "$CURSOR_DIR/data/User/keybindings.json"
[
{
"key": "ctrl+shift+;",
"command": "workbench.action.terminal.toggleTerminal"
}
]
JSON
echo "Cursor configuration refreshed in $CURSOR_DIR"