Skip to content

Instantly share code, notes, and snippets.

@jph00
Forked from mrbuk/tmux-launchd.md
Last active August 20, 2025 16:05
Show Gist options
  • Save jph00/38eadb5be70ed7abf73abf2dd7423265 to your computer and use it in GitHub Desktop.
Save jph00/38eadb5be70ed7abf73abf2dd7423265 to your computer and use it in GitHub Desktop.
tmux launchd definition

Place file below in ~/Library/LaunchAgents/tmux.plist.

  • Install using launchctl bootstrap gui/$UID ~/Library/LaunchAgents/tmux.plist
  • Uninstall using launchctl bootout gui/$UID/tmux
  • Restart with launchctl kickstart gui/$UID/tmux
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>tmux</string>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/var/tmp/tmux_err.log</string>
<key>StandardOutPath</key>
<string>/var/tmp/tmux_out.log</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/tmux</string>
<string>-D</string>
<string>-v</string>
</array>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment