Skip to content

Instantly share code, notes, and snippets.

@Nicd
Created April 28, 2015 09:22
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nicd/1762b024cf57d2acacc4 to your computer and use it in GitHub Desktop.
Save Nicd/1762b024cf57d2acacc4 to your computer and use it in GitHub Desktop.
Systemd service autostarting WeeChat in a tmux session on boot
[Unit]
Description=WeeChat in a tmux server for nicd
[Service]
Type=forking
User=nicd
ExecStart=/home/weechat_start
[Install]
WantedBy=multi-user.target
#!/bin/bash
. $HOME/.bashrc
export LANG='en_US.utf8'
export LC_ALL='en_US.utf8'
cd $HOME
tmux -u new-session -d -s irkki weechat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment