Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

autoTmux

sh script for automatically enable tmux environment when logged into shell

!!! Warning !!!

make sure you have another user(preferably root) able to log in, since bugs within all actions below may cause your user to be permanently unable to log in.

Usage:

put autoTmux.sh in your home dir, then add following lines to your .xshrc (e.g. .bashrc, .zshrc):

# If not inside a tmux session, and if the shell is interactive, then run the tmux menu script
if which tmux >/dev/null 2>&1 && [[ -z "$TMUX" ]] && [[ $- == *i* ]]; then
    ~/.autoTmux.sh
    exit
fi

About

sh script for automatically enable tmux environment when logged into shell

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages