SI
simeithander/zsh-ohmyzsh-powerlevel10k-config
Repositório destinado ao script de configuração automática do ZSH + OhMyZSH e PowerLevel10k
ZSH, Oh My ZSH & PowerLevel10k: Uma Jornada de Estilo no Terminal
Este script automatiza a instalação do ZSH, Oh My ZSH e PowerLevel10k, além de configurar temas e plugins para proporcionar uma experiência visualmente impressionante e mais funcional no seu terminal.
Passos do Script
1. Atualizando o sistema
- Objetivo: Atualiza o sistema para garantir que todos os pacotes estejam na versão mais recente.
2. Instalando o ZSH
- Objetivo: Instala o ZSH, um shell interativo de alta performance, substituindo o bash.
3. Instalando o CURL
- Objetivo: Instala o CURL, ferramenta útil para transferir dados com URLs.
4. Instalando o GIT
- Objetivo: Instala o GIT, um sistema de controle de versão amplamente utilizado.
5. Instalando o Oh My ZSH
- Objetivo: Instala o Oh My ZSH, uma framework para gerenciar o ZSH, trazendo recursos avançados e configurações.
6. Instalando o PowerLevel10k
- Objetivo: Baixa e instala o tema PowerLevel10k, que oferece um visual moderno e dinâmico para o terminal.
7. Configurando o PowerLevel10k como tema
- Objetivo: Configura o PowerLevel10k como o tema padrão no arquivo de configuração do ZSH.
8. Baixando e instalando a fonte MesloLGS NF Regular
- Objetivo: Baixa e instala a fonte MesloLGS NF Regular, que é recomendada para o PowerLevel10k, garantindo que os ícones e fontes especiais apareçam corretamente.
9. Instalando o ZSH Syntax Highlighting
- Objetivo: Instala o plugin ZSH Syntax Highlighting, que destaca a sintaxe do terminal para facilitar a leitura e o uso de comandos.
10. Instalando o ZSH Auto Suggestions
- Objetivo: Instala o plugin ZSH Auto Suggestions, que sugere comandos baseados no histórico enquanto você digita.
11. Configurando plugins no ~/.zshrc
- Objetivo: Configura os plugins no arquivo de configuração do ZSH, incluindo o Git, Syntax Highlighting e Auto Suggestions.
12. Recarregando o terminal
- Objetivo: Recarrega o terminal para iniciar o assistente de configuração do PowerLevel10k.
Clonando o repositório, dando permissões e executando o arquivo
1. Clonando o repositório
- Objetivo: Clonar o repositório que contém o script de configuração do ZSH, Oh My ZSH e PowerLevel10k.
git clone https://github.com/simeithander/zsh-ohmyzsh-powerlevel10k-config.git2. Acessando a pasta do repositório
- Objetivo: Navegar até a pasta do repositório clonado.
cd zsh-ohmyzsh-powerlevel10k-config3. Dando permissões de execução ao script .sh
- Objetivo: Conceder permissões de execução ao arquivo
.shpara que o script possa ser executado.
chmod +x zsh-config.sh 4. Executando o script
- Objetivo: Executar o script que realizará a instalação e configuração do ZSH, Oh My ZSH e PowerLevel10k.
./zsh-config.shEnglish Version
This script automates the installation of ZSH, Oh My ZSH, and PowerLevel10k, along with configuring themes and plugins to provide an impressive and functional terminal experience.
Script Steps
1. Updating the system
- Objective: Updates the system to ensure all packages are up to date.
2. Installing ZSH
- Objective: Installs ZSH, a high-performance interactive shell, replacing bash.
3. Installing CURL
- Objective: Installs CURL, a tool for transferring data with URLs.
4. Installing GIT
- Objective: Installs GIT, a widely used version control system.
5. Installing Oh My ZSH
- Objective: Installs Oh My ZSH, a framework for managing ZSH with advanced features and configurations.
6. Installing PowerLevel10k
- Objective: Downloads and installs the PowerLevel10k theme, providing a modern and dynamic visual for the terminal.
7. Setting PowerLevel10k as the theme
- Objective: Configures PowerLevel10k as the default theme in the ZSH configuration file.
8. Downloading and installing the MesloLGS NF Regular font
- Objective: Downloads and installs the MesloLGS NF Regular font, recommended for PowerLevel10k to ensure special icons and fonts appear correctly.
9. Installing ZSH Syntax Highlighting
- Objective: Installs the ZSH Syntax Highlighting plugin, which highlights terminal syntax for easier command reading and usage.
10. Installing ZSH Auto Suggestions
- Objective: Installs the ZSH Auto Suggestions plugin, which suggests commands based on history as you type.
11. Configuring plugins in ~/.zshrc
- Objective: Configures the plugins in the ZSH configuration file, including Git, Syntax Highlighting, and Auto Suggestions.
12. Reloading the terminal
- Objective: Reloads the terminal to start the PowerLevel10k configuration wizard.
Cloning the repository, setting permissions, and running the script
1. Cloning the repository
- Objective: Clone the repository containing the script to configure ZSH, Oh My ZSH, and PowerLevel10k.
git clone https://github.com/simeithander/zsh-ohmyzsh-powerlevel10k-config.git2. Accessing the repository folder
- Objective: Navigate to the folder of the cloned repository.
cd zsh-ohmyzsh-powerlevel10k-config3. Giving execution permissions to the .sh script
- Objective: Grant execution permissions to the
.shfile so that the script can be run.
chmod +x zsh-config.sh4. Running the script
- Objective: Run the script that will install and configure ZSH, Oh My ZSH, and PowerLevel10k.
./zsh-config.sh