mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-31 02:26:44 +10:00
tmux
This commit is contained in:
parent
e962bef837
commit
5a05a43749
1 changed files with 2 additions and 9 deletions
|
|
@ -3,17 +3,10 @@ REPO_ROOT=$(dirname $(readlink -f $0))/../..
|
|||
# Export desktop environment shell configuration
|
||||
eval "$($REPO_ROOT/docker/scripts/environment.sh)"
|
||||
|
||||
# Ensure the desktop environment shell session exists
|
||||
docker exec \
|
||||
--detach \
|
||||
$DESKTOP_ENVIRONMENT_CONTAINER_NAME \
|
||||
tmux new-session \
|
||||
-s desktop-environment-shell \
|
||||
-d
|
||||
|
||||
# Start a new tmux client attached to the desktop environment shell
|
||||
docker exec \
|
||||
--detach \
|
||||
--interactive \
|
||||
--tty \
|
||||
$DESKTOP_ENVIRONMENT_CONTAINER_NAME \
|
||||
tmux new-session \
|
||||
-s desktop-environment-shell-$(date +%s) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue