一键导入
tmux-attach-on-ssh
Attach to tmux session on SSH connect. TIL note about tmux. Use when working with tmux and the user mentions attach on ssh or related topics.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Attach to tmux session on SSH connect. TIL note about tmux. Use when working with tmux and the user mentions attach on ssh or related topics.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Back up a data directory to a remote host automatically whenever it changes, using inotify + rsync as a systemd user service. TIL note about linux. Use when working with linux and the user mentions event-driven backup, inotify rsync, watch-and-sync, or scheduled/continuous backups.
Show CPU temperature in the tmux status bar via the Dracula theme, with dynamic color based on the value, on Linux (desktops, servers, SBCs). Update-safe — uses /sys/class/thermal/ sysfs and does not patch the dracula plugin. Use when working with tmux on any Linux box and the user mentions adding a CPU temp segment to the tmux status line.
Show CPU temperature in the tmux status bar via the Dracula theme, with dynamic color based on the value (cold/normal/warm/hot), in an update-safe way. macOS (Apple Silicon) version using smctemp. Use when working with tmux, dracula/tmux, or the user mentions adding a CPU temp segment to the tmux status line on a Mac.
Install the Pi coding agent. TIL note about ai. Use when working with ai and the user mentions pi coding agent or related topics.
Use FFMPEG to cut and concatenate MP4 files. TIL note about ffmpeg. Use when working with ffmpeg and the user mentions cut cat mp4 or related topics.
Resize video file using ffmpeg. TIL note about ffmpeg. Use when working with ffmpeg and the user mentions resize video or related topics.
| name | tmux-attach-on-ssh |
| description | Attach to tmux session on SSH connect. TIL note about tmux. Use when working with tmux and the user mentions attach on ssh or related topics. |
On each SSH attach to a tmux session. See also create_tmux_session_if_none.md
cat ~/.bashrc
if [[ -z $TMUX ]] && [[ -n $SSH_TTY ]]; then
tmux a
fi