Este script automatiza a configuração do ambiente no Linux (Ubuntu) com as seguintes ferramentas:
- Zsh e Oh My Zsh
- Git e GitHub CLI
- GitHub Desktop
- Configurações de terminal personalizadas
- Linux (Ubuntu) instalado 💻
- Gerenciador de pacotes (dnf) instalado 📦
- Git instalado 🐙
echo "Iniciando as configurações de ambiente no Linux..."echo "Movendo a pasta Templates para a pasta home..."
sudo mv ~/Templates/ ~/echo "Fazendo merge da pasta Templates..."
rsync -a ~/Templates/ ~/Templates/echo "Instalando o Zsh..."
sudo apt install zsh -yecho "Instalando Oh My Zsh..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"echo "Alterando tema do Zsh para agnoster..."
sed -i 's/ZSH_THEME=".*"/ZSH_THEME="agnoster"/' ~/.zshrc
echo "Instalando o plugin zsh-autosuggestions..."
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestionsecho "Habilitando o plugin zsh-autosuggestions..." sed -i 's/plugins=(/plugins=(zsh-autosuggestions /' ~/.zshrc
echo "Instalando GitHub CLI (gh)..."
sudo apt install gh -yecho "Instalando GitHub Desktop..."
wget -qO - https://apt.packages.shiftkey.dev/gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/shiftkey-packages.gpg > /dev/null sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/shiftkey-packages.gpg] https://apt.packages.shiftkey.dev/ubuntu/ any main" > /etc/apt/sources.list.d/shiftkey-packages.list'
sudo apt update && sudo apt install github-desktop -yecho "Movendo o arquivo pacman para ~/.config..." sudo mv ~/pacman ~/.config/
echo "Configurando pacman no Zsh..." echo "source ~/.config/pacman" >> ~/.zshrc
echo "Configurando preferências do terminal..."
sudo chmod +x ~/.config/pacman gconftool-2 --set /apps/gnome-terminal/profiles/Default/use_custom_default_size --type bool true gconftool-2 --set /apps/gnome-terminal/profiles/Default/default_size_columns --type int 110 gconftool-2 --set /apps/gnome-terminal/profiles/Default/default_size_rows --type int 30 gconftool-2 --set /apps/gnome-terminal/profiles/Default/use_custom_background --type bool true gconftool-2 --set /apps/gnome-terminal/profiles/Default/background_darkness --type float 0.8
echo "Configurações aplicadas com sucesso! Reinicie o terminal para ver as mudanças."
___
.-' `'.
/ \
| ;
| | ___.--,
_.._ |0) = (0) | _.---'`__.-( (_.
__.--'`_.. '.__.\ '--. \_.-' ,.--'` `""`
( ,.--'` ',__ /./; ;, '.__.'` __
_`) ) .---.__.' / | |\ \__..--"" """--.,_
`---' .'.''-._.-'`_./ /\ '. \ _.--''````'''--._`-.__.'
| | .' _.-' | | \ \ '. `----`
\ \/ .' \ \ '. '-._)
\/ / \ \ `=.__`'-.
/ /\ `) ) / / `"".`\
, _.-'.'\ \ / / ( ( / /
`--'` ) ) .-'.' '.'. | (
(/` ( (` ) ) '-;
( ( ( ( ( (
) ) ) ) ) )
......... ......... .........
| |] | |] | |]
\ / \ / \ /
`-----' `-----' `-----'