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."