Created
March 6, 2017 17:38
-
-
Save anonymous/277774b4013d1e799d1140da6f7769f2 to your computer and use it in GitHub Desktop.
This file contains 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
#!/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 |
This file contains 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
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