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 | |
# Usage: | |
# Download this file | |
# Put it in /bin or wherever you want, eg: `/bin/tmuxlogin` | |
# Give it excutable permission, eg: `sudo chmod +x /bin/tmuxlogin` | |
# Modify your `/etc/shells` and add `/bin/tmuxlogin` to it | |
# Modify your `~/.tmux.conf` and add `set-option -g default-shell /bin/bash(or whatever shell you want)` to it | |
# `chsh -s /bin/tmuxlogin` | |
# Done! |