From 4c384fe219447a80bc8adca1622d36cdc37d17e1 Mon Sep 17 00:00:00 2001 From: iceBear67 Date: Sat, 22 Mar 2025 16:41:22 +0800 Subject: [PATCH] fix exit --- Dockerfile | 2 +- user.fish | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 96b0140..4ac001b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ apt-get update && apt-get upgrade chmod +x /bin/bubble apt-get install -y curl jq neovim htop fish tmux sudo git useradd -m -s /usr/bin/fish user -echo "user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/user.conf +echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/user.conf sudo -u user mkdir -p /home/user/.config/fish/ EOF COPY ./init.fish /init.fish diff --git a/user.fish b/user.fish index 7ec15be..9fc2720 100644 --- a/user.fish +++ b/user.fish @@ -6,6 +6,10 @@ if test ! -e /bin/docker echo "Docker is not installed. Type 'install-docker' to install if needed." end +function exit + tmux detach && exit +end + function install-docker if test -e /bin/docker echo "Docker is already present at /bin/docker."