From 12d0a362b4a0a744aa7899ff1bc243f8c3543247 Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Sun, 1 Dec 2024 21:44:40 +0100 Subject: [PATCH] add tmux shell terminal multiplexer --- Dockerfile | 2 +- bash-config/.bashrc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0eb96e4..984596e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,7 +34,7 @@ RUN mkdir -p "/root/.cache/crontab" # Install packages RUN pacman-key --init RUN pacman -Syu --noconfirm sudo bash-completion openssh neofetch \ - borgbackup dateutils prometheus-node-exporter wget git base-devel cron net-tools inetutils + borgbackup dateutils prometheus-node-exporter wget git base-devel cron net-tools inetutils tmux # Make Build User RUN useradd builduser -m diff --git a/bash-config/.bashrc b/bash-config/.bashrc index 919a21b..1e43b08 100644 --- a/bash-config/.bashrc +++ b/bash-config/.bashrc @@ -1,3 +1,5 @@ +[ ! -z "$USE_TMUX_SHELL" ] && [[ -t 0 ]] && [ -z "$TMUX" ] && (exec tmux attach || exec tmux new-session && exit) + alias update='sudo pacman -Syu --noconfirm' export HISTTIMEFORMAT="%d/%m/%y %T "