Skip to content

Instantly share code, notes, and snippets.

@nviennot
Created May 31, 2012 08:40
Show Gist options
  • Save nviennot/2841963 to your computer and use it in GitHub Desktop.
Save nviennot/2841963 to your computer and use it in GitHub Desktop.
#!/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