Skip to content

Instantly share code, notes, and snippets.

@shaynem
shaynem / readme.md
Created Nov 25, 2019
Mosh tmux iterm2
View readme.md

Filippo Valsorda has a solution for OS X that incorporates iTerm 2, tmux, and mosh.

His solution uses a single window/tab to connect to a remote shell. The shell survives disconnects (e.g., connection failure, IP changes, laptop reboots) and supports scrollback with a touchpad, copy-paste, and colors.

Caveats are that you must build mosh from source, scrolling is less fluid than native, and click-drag is relayed, so you must hold Option to select.

iTerm In the Terminal Profile settings, Enable xterm mouse reporting and set Report Terminal Type to xterm-256color.

tmux

@shaynem
shaynem / gist:abec08cf6fd3e6d33ac09665d42f1470
Last active Apr 29, 2019
Mac OS change screenshot default directory
View gist:abec08cf6fd3e6d33ac09665d42f1470
Terminal
defaults write com.apple.screencapture location ~/Documents/Screenshots