diff --git a/README.md b/README.md index 0af77059f..eb4e8bec7 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,13 @@ You can install lazydocker using the [AUR](https://aur.archlinux.org/packages/la yay -S lazydocker ``` +### Install Automatic + chmod +x install_lazydocker.sh + ./install_lazydocker.sh + source ~/.bashrc + lazydocker + + ### Docker [![Docker Pulls](https://img.shields.io/docker/pulls/lazyteam/lazydocker.svg)](https://hub.docker.com/r/lazyteam/lazydocker) diff --git a/install_lazydocker.sh b/install_lazydocker.sh new file mode 100755 index 000000000..cfea739a4 --- /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"