-
-
Save ArcticLight/ffda93bc7ce8652ea2a521e66aeb5e76 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_DIRT=$(pwd); zsh\"" | |
tmux a | |
else | |
tmux new-session "bash -c \"export STARTUP_DIRT=$(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
# Startup Directory Plus | |
if [ -z ${STARTUP_DIRT+x} ]; then | |
else | |
cd $STARTUP_DIRT | |
fi | |
if [ -z ${TMUX+x} ]; then | |
if [[ -o login ]]; then | |
if [[ -z ${XDG_CURRENT_DESKTOP+x} ]]; then | |
else | |
$HOME/standup-zsh.sh | |
exit | |
fi | |
elif [[ -z ${XDG_CURRENT_DESKTOP+x} ]]; then | |
# Not login and no XDG seat - do not TMUX | |
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