You are not logged in.
Hi,
anyone tried using tmux as login shell? chsh says it is invalid.
I want tmux to attach to an existing session or else create a new one upon login if no session exists.
Putting "exec /usr/bin/tmux attach" into my ~/.bash_profile doesn't create a session if none exists.
Any ideas?
Thanks!
Last edited by awayand (2011-05-17 18:28:50)
Offline
tmux is not a shell itself but a terminal multiplexer; one or more shells are running inside tmux.
You can try something like this in your .bashrc:
if [[ -z "$TMUX" ]]; then
tmux att
fi
ᶘ ᵒᴥᵒᶅ
Offline
Although I don't understand what the script does: that worked like a charm. Thanks!
Offline