Skip to content

Instantly share code, notes, and snippets.

View chrisjunlee's full-sized avatar

Chris chrisjunlee

View GitHub Profile
@chrisjunlee
chrisjunlee / agents-symlinks.md
Last active August 26, 2026 17:34
Simplifying AGENTS.md with Symlinks — one file, many AI coding agents
@chrisjunlee
chrisjunlee / ghostty-tmux-setup-v2.md
Created May 9, 2026 23:14
Ghostty + tmux + sesh — macOS AI-coding terminal stack (v2: save-on-kill + custom picker)

tmux + sesh + Ghostty: a session-oriented terminal workflow

A small toolchain that boots Ghostty straight into a fuzzy session picker instead of a shell. One fzf list dispatches across live tmux sessions, saved-and-killed sessions (one-shot restore), and zoxide directories. Save-on-kill instead of save-on-timer; per-session save files; orphan child cleanup on pane death.

Tested on macOS (Homebrew + Ghostty). Should adapt to Linux with minor path tweaks.

@chrisjunlee
chrisjunlee / ghostty-tmux-setup.md
Created April 19, 2026 23:26
Ghostty + tmux + sesh — my macOS AI-coding terminal stack

My Ghostty setup

Drop-in iTerm2 replacement, way lighter under AI-agent load.

Layer Tool Why
Terminal Ghostty GPU-rendered, Inconsolata 19pt, vim's :colorscheme default palette on pure black
Multiplexer tmux One session per project
Session picker sesh Fuzzy picker over project dirs, launches on terminal open
Dir history zoxide Frecency-ranked dirs feed the picker
#!/usr/bin/bash
loadkeys fr
# ssd clearing (wiki.archlinux.org/index.php/SSD_memory_cell_clearing)
hdparm -I /dev/sda # and ensure the ssd is not frozen
hdparm --user-master u --security-set-pass MyPaSsWoRd /dev/sda
hdparm -I /dev/sda # in order to check
hdparm --user-master u --security-erase MyPaSsWoRd /dev/sda