Created
April 28, 2015 09:22
-
-
Save Nicd/1762b024cf57d2acacc4 to your computer and use it in GitHub Desktop.
Systemd service autostarting WeeChat in a tmux session on boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=WeeChat in a tmux server for nicd | |
[Service] | |
Type=forking | |
User=nicd | |
ExecStart=/home/weechat_start | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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