Skip to content

Commit 6b5c16e

Browse files
committed
feat(zellij): rebind keybinds and add shell aliases
Rebind session mode to Ctrl+b (Ctrl+o conflicts with Claude) and tab mode to Ctrl+. for ergonomics. Add zj, zja, zjl shell aliases.
1 parent 42e56ba commit 6b5c16e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

aliases/zsh.aliases.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ if type rg > /dev/null 2>&1; then
106106
alias rgp="rg --passthrough"
107107
fi
108108

109+
if type zellij > /dev/null 2>&1; then
110+
alias zj="zellij"
111+
alias zja="zellij attach"
112+
alias zjl="zellij list-sessions"
113+
fi
114+
109115
if type terminal-notifier > /dev/null 2>&1; then
110116
# notify alias with iterm2 icon
111117
alias notify="terminal-notifier -title 'ZSH' -sound funk -message"

zellij/config.kdl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Uses native keybinds (Ctrl+p pane, Ctrl+t tab, Ctrl+n resize, Ctrl+s scroll, Ctrl+o session)
33

44
// Appearance
5-
pane_frames false
5+
pane_frames true
66
theme "vscode-dark"
77

88
// Session persistence
@@ -34,6 +34,13 @@ themes {
3434

3535
// Keybind additions (extend defaults, don't replace)
3636
keybinds {
37+
// Rebind modes for ergonomics (Ctrl+o conflicts with Claude)
38+
shared_except "locked" {
39+
unbind "Ctrl o"
40+
unbind "Ctrl t"
41+
bind "Ctrl b" { SwitchToMode "Session"; } // was Ctrl+o
42+
bind "Ctrl ." { SwitchToMode "Tab"; } // was Ctrl+t
43+
}
3744
// Launch zellij-forgot with Ctrl+y for keybind hints
3845
shared_except "locked" {
3946
bind "Ctrl y" {

0 commit comments

Comments
 (0)