mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
add: creation of simple script install automatic
This commit is contained in:
parent
bedde4a037
commit
76475f5178
1 changed files with 17 additions and 0 deletions
17
install_lazydocker.sh
Executable file
17
install_lazydocker.sh
Executable file
|
|
@ -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"
|
||||
Loading…
Add table
Reference in a new issue