desktop-environment/docker/scripts/tmux.sh
Jackson Delahunt 9ca81fe84a name-to-image
2020-09-12 02:25:45 +10:00

13 lines
395 B
Bash
Executable file

REPO_ROOT=$(dirname $(readlink -f $0))/../..
# Export desktop environment shell configuration
eval "$($REPO_ROOT/docker/scripts/environment.sh)"
# Start a new tmux client attached to the desktop environment shell
docker exec \
--interactive \
--tty \
$DESKTOP_ENVIRONMENT_CONTAINER_IMAGE \
tmux new-session \
-s desktop-environment-shell-$(date +%s) \
-t desktop-environment-shell