Skip to content

Commit c940768

Browse files
atkeiclaude
andauthored
Update dev tools and terminal config (#17)
* Add cmux keyboard shortcuts matching tmux config Configure cmux keybindings to mirror the tmux setup (Ctrl+A prefix, pain-control style splits, vi-like pane navigation). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Enable allow-passthrough in tmux Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Activate mise on all platforms Previously limited to Linux only; now runs on macOS as well. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add Cursor CLI bootstrap and cmux symlink Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add Ghostty config for cmux terminal appearance Set font-size=12 and One Dark theme, managed via dotfiles symlink. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e1b7bff commit c940768

7 files changed

Lines changed: 48 additions & 6 deletions

File tree

.config/cmux/settings.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/manaflow-ai/cmux/main/web/data/cmux-settings.schema.json",
3+
"schemaVersion": 1,
4+
"shortcuts": {
5+
"bindings": {
6+
"newSurface": ["ctrl+a", "c"],
7+
"closeTab": ["ctrl+a", "x"],
8+
"nextSurface": ["ctrl+a", "n"],
9+
"prevSurface": ["ctrl+a", "p"],
10+
"splitRight": ["ctrl+a", "\\"],
11+
"splitDown": ["ctrl+a", "-"],
12+
"focusLeft": ["ctrl+a", "h"],
13+
"focusDown": ["ctrl+a", "j"],
14+
"focusUp": ["ctrl+a", "k"],
15+
"focusRight": ["ctrl+a", "l"],
16+
"toggleSplitZoom": ["ctrl+a", "z"],
17+
"toggleTerminalCopyMode": ["ctrl+a", "["],
18+
"renameTab": ["ctrl+a", ","],
19+
"renameWorkspace": ["ctrl+a", "$"],
20+
"goToWorkspace": ["ctrl+a", "w"],
21+
"commandPalette": ["ctrl+a", ":"]
22+
}
23+
}
24+
}

.config/ghostty/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
font-size = 12
2+
theme = One Dark

.tmux.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ setw -g mode-keys vi # Use vi key bindings in copy mode.
1616
bind-key -T copy-mode-vi v send -X begin-selection # Start the copy mode selection from 'v'.
1717

1818
set -g @continuum-restore 'on'
19+
set -g allow-passthrough on
1920

2021
set -g @plugin 'tmux-plugins/tpm'
2122
set -g @plugin 'tmux-plugins/tmux-pain-control'

.zshrc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,9 @@ fi
108108
# Pulumi completion
109109
[ $commands[pulumi] ] && source <(pulumi gen-completion zsh)
110110

111-
# mise (Linux only; Homebrew auto-activates on macOS)
112-
# https://mise.jdx.dev/
113-
if [[ "$(uname)" == "Linux" ]] && command -v mise &> /dev/null; then
114-
eval "$(mise activate zsh)"
115-
eval "$(mise completion zsh)"
116-
fi
111+
# mise
112+
eval "$(mise activate zsh)"
113+
eval "$(mise completion zsh)"
117114

118115
# Azure CLI completion
119116
if [[ -f "$HOME/.azure/az.completion" ]] then;
@@ -163,3 +160,4 @@ function unset-aws-mfa() {
163160
unset AWS_SECRET_ACCESS_KEY
164161
unset AWS_SESSION_TOKEN
165162
}
163+

bootstrap/bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ fi
2727

2828
if [ "$(uname)" == "Linux" ] || [ "$(uname)" == "Darwin" ]; then
2929
task "Install Claude Code" "claude.sh"
30+
task "Install Cursor CLI" "cursor-cli.sh"
3031
fi
3132

3233
task "Install prezto" "prezto.sh"

bootstrap/cursor-cli.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
# https://cursor.com/docs/cli/installation
6+
7+
if command -v agent &> /dev/null; then
8+
echo "cursor agent is already installed."
9+
exit 0
10+
fi
11+
12+
curl -fsSL https://cursor.com/install | bash
13+
14+
exit 0

install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ function mklinks() {
3737
mklink ".awsp-wrapper"
3838
mklink ".vimrc"
3939
mklink ".config/git" ${CONFDIR}
40+
mklink ".config/cmux" ${CONFDIR}
41+
mklink ".config/ghostty" ${CONFDIR}
4042

4143
if [ "$(uname)" == "Darwin" ]; then
4244
mklink ".Brewfile"

0 commit comments

Comments
 (0)