feat(ssh): set environment variable TERM=tmux-256color for correct colours
This commit is contained in:
parent
1543b85cc4
commit
d8358cdccb
@ -151,7 +151,7 @@ rw)
|
||||
fi
|
||||
|
||||
log "⚡ $PERSON is working on $WORKSPACE's workspace"
|
||||
if ! podman exec -it --user "$DEV_USER" "$WORKSPACE" tmux attach -t "$TMUX_SESSION"; then
|
||||
if ! podman exec -it -e TERM=tmux-256color --user "$DEV_USER" "$WORKSPACE" tmux attach -t "$TMUX_SESSION"; then
|
||||
log "❌ Could not attach to tmux session. Please contact admin or try again later."
|
||||
exit 1
|
||||
fi
|
||||
@ -163,7 +163,7 @@ rw)
|
||||
ro)
|
||||
if (podman container exists "$WORKSPACE" && podman inspect -f '{{.State.Running}}' "$WORKSPACE" | grep -q true) >/dev/null 2>&1; then
|
||||
log "📜 $PERSON is viewing $WORKSPACE's workspace"
|
||||
if ! podman exec -it --user "$DEV_USER" "$WORKSPACE" tmux attach -r -t "$TMUX_SESSION"; then
|
||||
if ! podman exec -it -e TERM=tmux-256color --user "$DEV_USER" "$WORKSPACE" tmux attach -r -t "$TMUX_SESSION"; then
|
||||
log "❌ Could not attach to tmux session. Please contact admin or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user