Bem vindo!

ao blog Willem Allan

Instalando e configurando: terminator, ZSH, Oh My ZSH e o powerlevel9k




Instalando Terminator

sudo apt install terminator

Instalando ZSH

sudo apt install zsh

Instalando Oh My ZSH

sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Baixe os pacotes do tema e das fontes.


git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/themes/powerlevel9k
git clone https://github.com/ryanoasis/nerd-fonts.git ~/Downloads/nerdFonts

É preciso instalar as fontes também.

cd ~/Downloads/nerdFonts
./install.sh Hack
./install.sh HeavyData

Editar o arquivo ~/.zshrc, alterando o seu thema.

ZSH_THEME="powerlevel9k/powerlevel9k"

Depois adicione as linhas abaixo no arquivo ~/.zshrc também.


POWERLEVEL9K_MODE="nerdfont-complete"

# python
POWERLEVEL9K_CUSTOM_PYTHON="echo -n '\uf81f' Python"
POWERLEVEL9K_CUSTOM_PYTHON_FOREGROUND=000
POWERLEVEL9K_CUSTOM_PYTHON_BACKGROUND=085

# ubuntu
POWERLEVEL9K_CUSTOM_UBUNTU_ICON="echo -n '\uf31c' Ubuntu "
POWERLEVEL9K_CUSTOM_UBUNTU_ICON_BACKGROUND=069
POWERLEVEL9K_CUSTOM_UBUNTU_ICON_FOREGROUND=000

# Customise the Powerlevel9k prompts
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
custom_ubuntu_icon
dir
custom_python
status
)

POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
command_execution_time
vcs
background_jobs_joined
time_joined
)

POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="%F{white}\u256D\u2500%F{white}"
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%F{white}\u2570\uf460%F{white} "

# vcs
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND="clear"
POWERLEVEL9K_VCS_MODIFIED_FOREGROUND=145
POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND="clear"
POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND=145

# folders
POWERLEVEL9K_DIR_HOME_BACKGROUND=045
POWERLEVEL9K_DIR_HOME_FOREGROUND=000
POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND=045
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND=000
POWERLEVEL9K_DIR_WRITABLE_FORBIDDEN_BACKGROUND=045
POWERLEVEL9K_DIR_WRITABLE_FORBIDDEN_FOREGROUND=000
POWERLEVEL9K_DIR_DEFAULT_BACKGROUND=045
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND=000
POWERLEVEL9K_ROOT_INDICATOR_BACKGROUND=045
POWERLEVEL9K_ROOT_INDICATOR_FOREGROUND=000

# status
POWERLEVEL9K_STATUS_OK_BACKGROUND="clear"
POWERLEVEL9K_STATUS_OK_FOREGROUND="green"
POWERLEVEL9K_STATUS_ERROR_BACKGROUND="clear"
POWERLEVEL9K_STATUS_ERROR_FOREGROUND="red"
# time
POWERLEVEL9K_TIME_BACKGROUND="clear"
POWERLEVEL9K_TIME_FOREGROUND=075

# command execution time
POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND="clear"
POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=095

# background jobs
POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND="clear"
POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=003