Skip to content

Commit

Permalink
Modify tmux settings to allow tmux attach to be default connection
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcPaquette committed May 21, 2021
1 parent 0e97a84 commit d8e9332
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/capi-workspaces
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ fi
echo "Running 'kubectl exec --stdin --tty $pod -- /bin/bash'"
echo ""
echo ""
kubectl exec --stdin --tty "$pod" -- /bin/bash
kubectl exec --stdin --tty "$pod" -- tmux attach
3 changes: 3 additions & 0 deletions capi-workspace-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,7 @@ RUN set -ex && \
RUN cd ~/workspace/capi-release/src/cloud_controller_ng && \
bundle install

# Allow tmux to create a tmux session when attaching
RUN echo 'new-session -n $HOST' > ~/.tmux.conf

CMD sleep infinity

0 comments on commit d8e9332

Please sign in to comment.