Skip to content

Instantly share code, notes, and snippets.

@felipe2g
Last active August 14, 2023 12:15
Show Gist options
  • Save felipe2g/80f33fe6f690124ef6899fb684538780 to your computer and use it in GitHub Desktop.
Save felipe2g/80f33fe6f690124ef6899fb684538780 to your computer and use it in GitHub Desktop.
sudo apt-get install zsh
zsh --version
sudo apt-get install curl
sudo add-apt-repository ppa:git-core/ppa ; sudo apt update ; sudo apt-get install git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
code . ~/.zshrc
-- Procure pela variável ZSH_THEME e altere para ZSH_THEME=”spaceship”
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
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=" "
-- Zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
-- Zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
)
-- Após instalação
source ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment