Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ubuntu default tmux shell

if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
  exec tmux
fi
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #ubuntu #default #tmux #shell
ADD COMMENT
Topic
Name
7+2 =