Shell environment initializers and docker containers
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh |
|
# shell-inits container entrypoint: attach to or create the default tmux |
|
# session 'main'. Set SHELL_INITS_NO_TMUX=1 for a plain login zsh. |
|
set -e |
|
if [ "${SHELL_INITS_NO_TMUX:-0}" = "1" ]; then |
|
exec "${SHELL:-/usr/bin/zsh}" -l |
|
fi |
|
exec tmux new -As main
|
|
|