Skip to content

Instantly share code, notes, and snippets.

View shaynem's full-sized avatar
🎯
Focusing

shaynem

🎯
Focusing
View GitHub Profile
@shaynem
shaynem / readme.md
Created November 25, 2019 09:17
Mosh tmux iterm2

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 April 29, 2019 11:28
Mac OS change screenshot default directory
Terminal
defaults write com.apple.screencapture location ~/Documents/Screenshots