Skip to content

Instantly share code, notes, and snippets.

View elgabo82's full-sized avatar

Gabriel Morejón elgabo82

View GitHub Profile
@ClassicOldSong
ClassicOldSong / tmuxlogin
Last active November 21, 2023 22:49
Use tmux as your login shell
#!/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!