Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if [[ $TMUX != "" && `/usr/bin/tmux show-options 2> /dev/null | grep "^status off$"` ]]; then
- /usr/bin/tmux set status on \; $@ &> /dev/null
- else
- if [[ $1 == "--nostatus" ]]; then
- /usr/bin/tmux -2 new-session \; set status off
- else
- /usr/bin/tmux -2 $@
- fi
- fi
Add Comment
Please, Sign In to add comment