Skip to content

Instantly share code, notes, and snippets.

Created March 6, 2017 17:38
Show Gist options
  • Save anonymous/277774b4013d1e799d1140da6f7769f2 to your computer and use it in GitHub Desktop.
Save anonymous/277774b4013d1e799d1140da6f7769f2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if tmux list-sessions ; then
tmux new-window "bash -c \"export STARTUP_DIR=$(pwd); zsh\""
tmux a
else
tmux new-session "bash -c \"export STARTUP_DIR=$(pwd); zsh\""
fi
if [ -z ${STARTUP_DIR+x} ]; then
else
cd $STARTUP_DIR
fi
if [ -z ${TMUX_PANE+x} ]; then
if [[ -o login ]]; then
$HOME/standup-zsh.sh
exit
elif [[ -z ${XDG_SEAT+x} ]]; then
else
$HOME/standup-zsh.sh
exit
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment