From 76475f517891f2a863173fd82dd08ed1f45c3ec8 Mon Sep 17 00:00:00 2001 From: Kelven Date: Sat, 7 Jun 2025 13:25:07 -0300 Subject: [PATCH] add: creation of simple script install automatic --- install_lazydocker.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 install_lazydocker.sh diff --git a/install_lazydocker.sh b/install_lazydocker.sh new file mode 100755 index 00000000..cfea739a --- /dev/null +++ b/install_lazydocker.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +go install github.com/jesseduffield/lazydocker@latest + + +# Baixa e instala o lazydocker +curl https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash + +# Adiciona $HOME/go/bin ao PATH no bashrc se ainda não existir +if ! grep -q 'export PATH="$HOME/go/bin:$PATH"' ~/.bashrc; then + echo 'export PATH="$HOME/go/bin:$PATH"' >> ~/.bashrc + echo '[+] Adicionado $HOME/go/bin ao PATH no ~/.bashrc' +fi + +echo -e "\n✅ Instalação concluída!" +echo "⚠️ Execute: source ~/.bashrc" +echo "📦 Depois, rode: lazydocker"