This commit is contained in:
iceBear67
2025-03-22 16:41:22 +08:00
parent 77df592e20
commit 4c384fe219
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ apt-get update && apt-get upgrade
chmod +x /bin/bubble chmod +x /bin/bubble
apt-get install -y curl jq neovim htop fish tmux sudo git apt-get install -y curl jq neovim htop fish tmux sudo git
useradd -m -s /usr/bin/fish user 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/ sudo -u user mkdir -p /home/user/.config/fish/
EOF EOF
COPY ./init.fish /init.fish COPY ./init.fish /init.fish
+4
View File
@@ -6,6 +6,10 @@ if test ! -e /bin/docker
echo "Docker is not installed. Type 'install-docker' to install if needed." echo "Docker is not installed. Type 'install-docker' to install if needed."
end end
function exit
tmux detach && exit
end
function install-docker function install-docker
if test -e /bin/docker if test -e /bin/docker
echo "Docker is already present at /bin/docker." echo "Docker is already present at /bin/docker."