Skip to content

Instantly share code, notes, and snippets.

@rickneves15
Created December 21, 2023 18:52
Show Gist options
  • Save rickneves15/bde19e161a80b7125b7ad7f21990509c to your computer and use it in GitHub Desktop.
Save rickneves15/bde19e161a80b7125b7ad7f21990509c to your computer and use it in GitHub Desktop.
install and config zsh terminal in linux
#instala o zsh
sudo apt install zsh
#reinicie o terminal
#instala o ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#reinicie o terminal
#instala a fonte FiraCode
sudo apt install fonts-firacode
#instala o spaceship
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
#configura o spaceship no .zshrc
ZSH_THEME="spaceship"
#reinicie o terminal
/* no final do .zshrc adicionar essas configurações
SPACESHIP_PROMPT_ORDER=(
user # Username section
dir # Current directory section
host # Hostname section
git # Git section (git_branch + git_status)
hg # Mercurial section (hg_branch + hg_status)
exec_time # Execution time
line_sep # Line break
vi_mode # Vi-mode indicator
jobs # Background jobs indicator
exit_code # Exit code section
char # Prompt character
)
SPACESHIP_USER_SHOW=always
SPACESHIP_PROMPT_ADD_NEWLINE=false
SPACESHIP_CHAR_SYMBOL="❯"
SPACESHIP_CHAR_SUFFIX=" "
*/
#reinicie o terminal
#instala o zinit
bash -c "$(curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh)"
#reinicie o terminal
#usar esse comando
zinit self-update
adicione no finaldo arquivo .zshrc
End of ZInit's installer chunk
zinit light zdharma/fast-syntax-highlighting
zinit light zsh-users/zsh-autosuggestions
zinit light zsh-users/zsh-completions
#reinicie o terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment