-
-
Save nviennot/2841963 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment