Skip to content

Instantly share code, notes, and snippets.

@MarceloHBoff
Last active April 27, 2020 17:11
Show Gist options
  • Select an option

  • Save MarceloHBoff/429898a978ae2558eca32c01fbf7fa16 to your computer and use it in GitHub Desktop.

Select an option

Save MarceloHBoff/429898a978ae2558eca32c01fbf7fa16 to your computer and use it in GitHub Desktop.
# Config in preferences:
Font: Fira Code Retina
Size: 14
https://blog.rocketseat.com.br/terminal-com-oh-my-zsh-spaceship-dracula-e-mais/
# Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
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"
in ~/.zshrc
ZSH_THEME="spaceship"
SPACESHIP_PROMPT_ORDER=(
user
dir
host
git
exec_time
line_sep
vi_mode
jobs
exit_code
char
)
SPACESHIP_PROMPT_ADD_NEWLINE=false
SPACESHIP_CHAR_SYMBOL=">"
SPACESHIP_CHAR_SUFFIX=" "
# Plugins
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma/zinit/master/doc/install.sh)"
source ~/.zinit/bin/zinit.zsh
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
zinit light zsh-users/zsh-autosuggestions
zinit light zsh-users/zsh-completions
zinit light zdharma/fast-syntax-highlighting
# Default ZSH
chsh -s /bin/zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment