-
-
Save lgzarturo/c55340f5d53720917b90c72c2b7e1786 to your computer and use it in GitHub Desktop.
Configuración de la terminal ZSH
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
# Oh My Zsh y plugins | |
export TERM="xterm-256color" | |
export ZSH=~/.oh-my-zsh | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
DEFAULT_USER=`whoami` | |
ENABLE_CORRECTION="false" | |
unsetopt correct_all | |
COMPLETION_WAITING_DOTS="true" | |
plugins=(colorize colored-man-pages git github gitignore git-extras git-flow iterm2 ruby sdk yarn z zsh-syntax-highlighting zsh-interactive-cd zsh_reload virtualenv) | |
source $ZSH/oh-my-zsh.sh | |
export EDITOR='nvim' | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
export FZF_DEFAULT_COMMAND='rg --files --hidden -g "!{.git,package-lock.json}"' | |
# Antigen | |
source $HOME/.antigen.zsh | |
antigen use oh-my-zsh | |
antigen bundle git | |
antigen bundle heroku | |
antigen bundle pip | |
antigen bundle lein | |
antigen bundle command-not-found | |
antigen bundle zsh-users/zsh-syntax-highlighting | |
antigen bundle tonyseek/oh-my-zsh-virtualenv-prompt | |
antigen theme tonyseek/oh-my-zsh-seeker-theme seeker | |
antigen apply | |
# Powerlevel 9k Settings - https://github.com/bhilburn/powerlevel9k | |
POWERLEVEL9K_MODE='nerdfont-complete' | |
POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_PROMPT_ADD_NEWLINE=false | |
POWERLEVEL9K_SHORTEN_DIR_LENGTH=3 | |
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_beginning" | |
POWERLEVEL9K_RVM_BACKGROUND="black" | |
POWERLEVEL9K_RVM_FOREGROUND="249" | |
POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_COLOR="red" | |
POWERLEVEL9K_RVM_BACKGROUND="black" | |
POWERLEVEL9K_RVM_FOREGROUND="249" | |
POWERLEVEL9K_TIME_BACKGROUND="black" | |
POWERLEVEL9K_TIME_FOREGROUND="249" | |
POWERLEVEL9K_TIME_FORMAT="\UF43A %D{%I:%M \UF133 %m.%d.%y}" | |
POWERLEVEL9K_STATUS_VERBOSE=false | |
POWERLEVEL9K_VCS_CLEAN_FOREGROUND='black' | |
POWERLEVEL9K_VCS_CLEAN_BACKGROUND='green' | |
POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND='black' | |
POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND='yellow' | |
POWERLEVEL9K_VCS_MODIFIED_FOREGROUND='white' | |
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='black' | |
POWERLEVEL9K_VCS_UNTRACKED_ICON='\u25CF' | |
POWERLEVEL9K_VCS_UNSTAGED_ICON='\u00b1' | |
POWERLEVEL9K_VCS_INCOMING_CHANGES_ICON='\u2193' | |
POWERLEVEL9K_VCS_OUTGOING_CHANGES_ICON='\u2191' | |
POWERLEVEL9K_VCS_COMMIT_ICON="\uf417" | |
POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND='black' | |
POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND='blue' | |
POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=0 | |
POWERLEVEL9K_FOLDER_ICON='' | |
POWERLEVEL9K_STATUS_OK_IN_NON_VERBOSE=true | |
POWERLEVEL9K_STATUS_VERBOSE=false | |
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="%F{blue}\u256D\u2500%f" | |
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%F{blue}\u2570\uf460%f " | |
POWERLEVEL9K_CUSTOM_DOCKER_SIGNAL="zsh_docker_signal" | |
POWERLEVEL9K_CUSTOM_INTERNET_SIGNAL="zsh_internet_signal" | |
POWERLEVEL9K_BATTERY_CHARGING='yellow' | |
POWERLEVEL9K_BATTERY_CHARGED='green' | |
POWERLEVEL9K_BATTERY_DISCONNECTED='$DEFAULT_COLOR' | |
POWERLEVEL9K_BATTERY_LOW_THRESHOLD='10' | |
POWERLEVEL9K_BATTERY_LOW_COLOR='red' | |
POWERLEVEL9K_BATTERY_ICON='\uf1e6' | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir battery context vcs root_indicator dir_writable virtualenv) | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(node_version status background_jobs host user) | |
HIST_STAMPS="mm/dd/yyyy" | |
DISABLE_UPDATE_PROMPT=true | |
# Colorize Man pages | |
export MANROFFOPT='-c' | |
export LESS_TERMCAP_mb=$(tput bold; tput setaf 2) | |
export LESS_TERMCAP_md=$(tput bold; tput setaf 6) | |
export LESS_TERMCAP_me=$(tput sgr0) | |
export LESS_TERMCAP_so=$(tput bold; tput setaf 3; tput setab 4) | |
export LESS_TERMCAP_se=$(tput rmso; tput sgr0) | |
export LESS_TERMCAP_us=$(tput smul; tput bold; tput setaf 7) | |
export LESS_TERMCAP_ue=$(tput rmul; tput sgr0) | |
export LESS_TERMCAP_mr=$(tput rev) | |
export LESS_TERMCAP_mh=$(tput dim) | |
# Git Stuff | |
export REVIEW_BASE=master | |
export GITHUB_TOKEN="{GITHUB_TOKEN}" | |
export GITHUB_PACKAGE_REGISTRY_USERNAME={GITHUB_USERNAME} | |
export GITHUB_PACKAGE_REGISTRY_TOKEN={GITHUB_TOKEN} | |
# Variables de entorno | |
export PATH="/usr/local/sbin:$PATH" | |
export PATH="$HOME/.local/bin:$PATH" | |
# Python 3 | |
export PATH="/usr/local/opt/python@3.8/bin:$PATH" | |
# Sdkman | |
export SDKMAN_DIR="$HOME/.sdkman" | |
export VISUALVM_HOME="$SDKMAN_DIR/candidates/visualvm/current" | |
export PATH="$VISUALVM_HOME/bin:$PATH" | |
export GRAILS_OPTS="-Xmx1G -Xms256m -XX:MaxPermSize=256m" | |
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" | |
# Ruby | |
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)" | |
export PATH="$HOME/.rbenv/versions/2.7.0/bin:$PATH" | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
# Yarn | |
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" | |
# Php y composer | |
export PATH="/usr/local/opt/apr/bin:$PATH" | |
export PATH="/usr/local/opt/apr-util/bin:$PATH" | |
export PATH="/usr/local/opt/php@7.4/bin:$PATH" | |
export PATH="/usr/local/opt/php@7.4/sbin:$PATH" | |
export PATH="$HOME/.composer/vendor/bin:$PATH" | |
# MySQL | |
export PATH="/usr/local/opt/mysql@5.7/bin:$PATH" | |
# SDK MacOSX Devtools | |
SDKROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" | |
export ARCHFLAGS="-arch x86_64" | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
# Openssl | |
export PATH="/usr/local/opt/openssl/bin:$PATH" | |
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib" | |
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include" | |
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig" | |
# Sonarqube | |
export PATH="$HOME/runtime/sonarqube-8.1.0.31237/bin/macosx-universal-64:$PATH" | |
export PATH="$HOME/runtime/sonar-scanner-4.2.0.1873-macosx/bin:$PATH" | |
# Liquibase | |
export PATH="$HOME/runtime/liquibase-3.5.3-bin:$PATH" | |
# iTerm2 | |
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" | |
# Kubernetes autocomplete | |
alias -g k=kubectl | |
alias -g kx=kubectx | |
alias -g ks=kubens | |
source <(kubectl completion zsh) # setup autocomplete in zsh into the current shell | |
if [ /usr/local/bin/kubectl ]; then source <(kubectl completion zsh); fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment