Last active
June 13, 2021 23:00
-
-
Save guilhermecapitao/5ecf8882bae62e0b3adfa9a0edc58240 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ZSH="/home/capitao/.oh-my-zsh" | |
### JAVA and Android Studio | |
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 | |
export ANDROID_HOME=~/Android/Sdk | |
export PATH=$PATH:$ANDROID_HOME/emulator | |
export PATH=$PATH:$ANDROID_HOME/tools | |
export PATH=$PATH:$ANDROID_HOME/tools/bin | |
export PATH=$PATH:$ANDROID_HOME/platform-tools | |
export PATH=$PATH:~/android-studio/bin # allow to execute studio.sh from anywhere | |
ZSH_THEME="spaceship" | |
plugins=(git) | |
source $ZSH/oh-my-zsh.sh | |
### Added by Zinit's installer | |
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then | |
print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f" | |
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit" | |
command git clone https://github.com/zdharma/zinit "$HOME/.zinit/bin" && \ | |
print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \ | |
print -P "%F{160}▓▒░ The clone has failed.%f%b" | |
fi | |
source "$HOME/.zinit/bin/zinit.zsh" | |
autoload -Uz _zinit | |
autoload -U compinit && compinit | |
(( ${+_comps} )) && _comps[zinit]=_zinit | |
### End of Zinit's installer chunk | |
[[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh # This loads NVM | |
[[ -s $HOME/.asdf/asdf.sh ]] && . $HOME/.asdf/asdf.sh # This loads NVM | |
##[[ -s $HOME/.asdf/completions/asdf.bash ]] && . $HOME/.asdf/completions/asdf.bash # This loads asdf | |
zinit light zsh-users/zsh-autosuggestions | |
zinit light zsh-users/zsh-completions | |
zinit light zdharma/fast-syntax-highlighting | |
LS_COLORS=$LS_COLORS:'ow=01;34:' ; export LS_COLORS | |
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_PROMPT_SEPARATE_LINE=false | |
SPACESHIP_CHAR_SYMBOL="➔" | |
SPACESHIP_CHAR_SUFFIX=" " | |
SPACESHIP_CHAR_COLOR_SECONDARY=orange | |
SPACESHIP_USER_COLOR=green | |
# Hide % on top | |
# unsetopt PROMPT_SPfpath=($fpath "/home/capitao/.zfunctions") | |
# Set Spaceship ZSH as a prompt | |
# autoload -U promptinit; promptinit | |
# prompt spaceship |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment