fix exit
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
@@ -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."
|
||||||
|
|||||||
Reference in New Issue
Block a user