My zsh configuration
git clone https://github.com/m-col/zshrc
Files | Refs | Readme

Commit 69f739bd06661d2c3cf2734a9511e05f2670a429
Parent: b02a2019ad2d47fef06a0c06e7db2d3be151fbdb
Author: Matt Colligan <matt@edra.ai>
Date: 2026-05-10 18:27:18 +0100
Committer: Matt Colligan <matt@edra.ai>
Committed: 2026-05-10 18:27:18 +0100

more

new-cc-session.sh Added

@@ -0,0 +1,36 @@
+#!/usr/bin/env bash
+
+title="$@"
+
+# prompt for title interactively if not passed as an arg (used by zellij keybinding)
+if [[ -z "$title" ]]; then
+    printf "Title: "
+    read title
+    [[ -z "$title" ]] && exit 1
+fi
+
+ctx_id=$(uuidgen | tr '[:upper:]' '[:lower:]' | cut -c1-8)
+
+#exec alacritty msg create-window \
+#    --working-directory ~/git \
+#    --command /bin/zsh -c \
+#	'/opt/homebrew/bin/tmux new-session -s "'"$title"'" -e CLAUDE_CONTEXT_ID='"$ctx_id"' \; split-window -h "/opt/homebrew/bin/claude --dangerously-skip-permissions; zsh" \; select-pane -t 1'
+
+# Rio can't launch in new tab
+#exec rio \
+#    --working-dir ~/git \
+#    --title-placeholder "$title" \
+#    --command /bin/zsh -c \
+#	'/opt/homebrew/bin/tmux new-session -s "'"$title"'" -e CLAUDE_CONTEXT_ID='"$ctx_id"' \; split-window -h "/opt/homebrew/bin/claude --dangerously-skip-permissions; zsh" \; select-pane -t 1'
+
+#exec wezterm start \
+#    --cwd ~/git \
+#    --new-tab \
+#    /bin/zsh -c \
+#	'/opt/homebrew/bin/tmux new-session -s "'"$title"'" -e CLAUDE_CONTEXT_ID='"$ctx_id"' \; split-window -h "/opt/homebrew/bin/claude --dangerously-skip-permissions; zsh" \; select-pane -t 1'
+
+exec wezterm start \
+    --cwd ~/git \
+    --new-tab \
+    /bin/zsh -c 'export CLAUDE_CONTEXT_ID='"$ctx_id"'; exec zellij --session "'"$title"'" --layout cc-session'
+

aliases Modified

@@ -199,6 +199,7 @@
 alias psi='python setup.py -q install'
 alias psiu='python setup.py -q install --user'
 alias m=make
+alias j=just
 alias mc='make clean'
 alias vimrc='nvim ~/.vim/pack/vim-misc/start/self/plugin/settings.vim'
 check() { pytest -xs --pdbcls pudb.debugger:Debugger $@; }