Last active
June 18, 2023 21:03
-
-
Save Aireck2/1b3b3a65c8aa981c739c4e60d0369e62 to your computer and use it in GitHub Desktop.
zshrc
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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
eval "$(starship init zsh)" | |
export ZSH="/Users/erickescriba/.oh-my-zsh" | |
export PATH="$HOME/.jenv/bin:$PATH" | |
export LC_ALL=en_US.UTF-8 | |
eval "$(jenv init -)" | |
export ES_HOME="~/Documents/project/elasticsearch-1.5.2" | |
export PATH=$ES_HOME/bin:$PATH | |
export FLUXX_LOCAL_CONFIG_NAME=dev-show-unique | |
autoload -U promptinit; promptinit | |
export UPDATE_ZSH_DAYS=1 | |
# Enable autocorrection | |
ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
COMPLETION_WAITING_DOTS="true" | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=( | |
docker | |
npm | |
rails | |
git | |
bundler | |
dotenv | |
macos | |
rbenv | |
ruby | |
jsontools | |
node | |
pip | |
zsh-autosuggestions | |
zsh-syntax-highlighting | |
colored-man-pages | |
colorize | |
common-aliases | |
copyfile | |
) | |
source $ZSH/oh-my-zsh.sh | |
function cleanup { | |
message_info "Clean node_modules files" | |
find . -name 'node_modules' -type d -print -exec rm -rf {} + | |
message_success "Clean node_modules done!" | |
} | |
# My useful aliases | |
alias c="clear" | |
alias q="exit" | |
alias vim="nvim" | |
alias editrc="vim ~/.zshrc" | |
alias editcustomrc="vim ~/.customrc" | |
# alias editohmyzsh="nvim ~/.oh-my-zsh" | |
alias editvimrc='nvim ~/.vimrc' | |
alias szsh="source ~/.zshrc" | |
local ret_status="%(?:%{$fg[yellow]%}=> :%{$fg[red]%}=> %s)" | |
bindkey -v | |
# npm global | |
export PATH=~/.npm-global/bin:$PATH | |
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" | |
export PATH="/usr/local/opt/ruby/bin:$PATH" | |
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" | |
export PATH="/usr/local/opt/mysql@5.6/bin:$PATH" | |
export PATH="/usr/local/opt/libxml2/bin:$PATH" | |
export PATH="/usr/local/opt/v8@3.15/bin:$PATH" | |
export PATH="$PATH:`pwd`/flutter/bin" | |
# export PATH="$PATH:~/.local/bin/lvim" | |
alias lvim="~/.local/bin/lvim" | |
# Added by Amplify CLI binary installer | |
export PATH="$HOME/.amplify/bin:$PATH" | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm | |
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion | |
# pnpm | |
export PNPM_HOME="/Users/erickescriba/Library/pnpm" | |
export PATH="$PNPM_HOME:$PATH" | |
# pnpm end | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | |
# echo '(( ! ${+functions[p10k]} )) || p10k finalize' >>! ~/.zshrc | |
source /Users/erickescriba/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
source /Users/erickescriba/.oh-my-zsh/custom/plugins/zsh-ghn/zsh-ghn.zsh | |
source /Users/erickescriba/.oh-my-zsh/custom/plugins/zsh-git/zsh-git.zsh | |
source /Users/erickescriba/.oh-my-zsh/custom/plugins/zsh-scmbreeze/zsh-scmbreeze.zsh | |
source /Users/erickescriba/.oh-my-zsh/custom/plugins/zsh-core/zsh-core.zsh | |
source /Users/erickescriba/.oh-my-zsh/custom/plugins/zsh-tmux/zsh-tmux.zsh | |
source /Users/erickescriba/.oh-my-zsh/custom/plugins/zsh-nvm/zsh-nvm.zsh | |
source /Users/erickescriba/.oh-my-zsh/custom/plugins/zsh-yarn/zsh-yarn.zsh | |
source /Users/erickescriba/.oh-my-zsh/custom/plugins/zsh-history/zsh-history.zsh | |
source /Users/erickescriba/.oh-my-zsh/custom/plugins/zsh-issues/zsh-issues.zsh | |
source /Users/erickescriba/.oh-my-zsh/custom/plugins/zsh-templates/zsh-templates.zsh | |
source /Users/erickescriba/.oh-my-zsh/custom/plugins/zsh-gst/zsh-gst.zsh | |
# source /Users/erickescriba/.oh-my-zsh/custom/plugins/wakatime/wakatime.plugin.zsh | |
source /Users/erickescriba/.oh-my-zsh/custom/plugins/zsh-kitty/zsh-kitty.zsh | |
source $(brew --prefix nvm)/nvm.sh | |
ZSH_DOTENV_PROMPT=false | |
# >>> conda initialize >>> | |
# !! Contents within this block are managed by 'conda init' !! | |
__conda_setup="$('/Users/erickescriba/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" | |
if [ $? -eq 0 ]; then | |
eval "$__conda_setup" | |
else | |
if [ -f "/Users/erickescriba/opt/anaconda3/etc/profile.d/conda.sh" ]; then | |
. "/Users/erickescriba/opt/anaconda3/etc/profile.d/conda.sh" | |
else | |
export PATH="/Users/erickescriba/opt/anaconda3/bin:$PATH" | |
fi | |
fi | |
unset __conda_setup | |
# <<< conda initialize <<< | |
# Aliases | |
[ -s "/Users/erickescriba/.scm_breeze/scm_breeze.sh" ] && source "/Users/erickescriba/.scm_breeze/scm_breeze.sh" | |
alias gc="git commit --verbose" | |
# alias vim="nvim" | |
zle -N gotop | |
bindkey -s "⌃0" gotop | |
zle -N yarn::run | |
bindkey -s "⌃XY" yarn::run | |
alias ll='lsd -lh --group-dirs=first' | |
alias la='lsd -a --group-dirs=first' | |
alias l='lsd --group-dirs=first' | |
alias lla='lsd -lha --group-dirs=first' | |
alias ls='lsd --group-dirs=first' | |
export GPG_TTY=$(tty) | |
# AWS | |
# export AWS_PROFILE_NAME="erick" | |
# The next line updates PATH for the Google Cloud SDK. | |
if [ -f '/Users/erickescriba/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/erickescriba/Downloads/google-cloud-sdk/path.zsh.inc'; fi | |
# The next line enables shell command completion for gcloud. | |
if [ -f '/Users/erickescriba/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/erickescriba/Downloads/google-cloud-sdk/completion.zsh.inc'; fi | |
# Load Angular CLI autocompletion. | |
source <(ng completion script) | |
export PATH="/usr/local/sbin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment