Last active
April 29, 2025 10:23
-
-
Save ar2pi/41d1d0645d6437d7b69b6e7c64e88d8e to your computer and use it in GitHub Desktop.
Revisions
-
ar2pi revised this gist
Apr 29, 2025 . 1 changed file with 48 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -118,21 +118,65 @@ source $ZSH/oh-my-zsh.sh # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # ============================================================= # ================ Custom Powerlevel10k options =============== # ================ see ~/.p10k.zsh =============== # ============================================================= typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( # =========================[ Line #1 ]========================= os_icon # os identifier dir # current directory vcs # git status # =========================[ Line #2 ]========================= newline # \n prompt_char # prompt symbol ) typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( # =========================[ Line #1 ]========================= status # exit code of the last command command_execution_time # duration of the last command pyenv # python environment (https://github.com/pyenv/pyenv) goenv # go environment (https://github.com/syndbg/goenv) nvm # node.js version from nvm (https://github.com/nvm-sh/nvm) kubecontext # current kubernetes context (https://kubernetes.io/) terraform # terraform workspace (https://www.terraform.io) aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) background_jobs # presence of background jobs # time # current time # =========================[ Line #2 ]========================= newline ) typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=217 typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=73 # kubecontext typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|flux|fluxctl|stern|kubeseal|skaffold' typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION='${P9K_KUBECONTEXT_NAME}' # aws typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|terraform|pulumi|terragrunt' # terraform typeset -g POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT=false # goenv typeset -g POWERLEVEL9K_GOENV_FOREGROUND=39 typeset -g POWERLEVEL9K_GOENV_SOURCES=(shell local) typeset -g POWERLEVEL9K_GOENV_PROMPT_ALWAYS_SHOW=true typeset -g POWERLEVEL9K_GOENV_SHOW_SYSTEM=false # pyenv typeset -g POWERLEVEL9K_PYENV_FOREGROUND=26 typeset -g POWERLEVEL9K_PYENV_SOURCES=(shell local) typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=true typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=false # nvm typeset -g POWERLEVEL9K_NVM_FOREGROUND=70 typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND=236 typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=11 typeset -g POWERLEVEL9K_DIR_BACKGROUND=62 @@ -143,8 +187,6 @@ typeset -g POWERLEVEL9K_NVM_BACKGROUND=22 typeset -g POWERLEVEL9K_NVM_FOREGROUND=249 typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=237 typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=255 typeset -g POWERLEVEL9K_PYENV_BACKGROUND=26 typeset -g POWERLEVEL9K_PYENV_FOREGROUND=249 typeset -g POWERLEVEL9K_STATUS_ERROR=true @@ -159,6 +201,8 @@ typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=2 typeset -g POWERLEVEL9K_TIME_BACKGROUND=237 typeset -g POWERLEVEL9K_TIME_FOREGROUND=249 # ============================================================= # java export JAVA_HOME=$(/usr/libexec/java_home) -
ar2pi revised this gist
Nov 1, 2023 . 1 changed file with 16 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -74,13 +74,16 @@ ZSH_HIGHLIGHT_MAXLENGTH=80 # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=( aws # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/aws colored-man-pages # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/colored-man-pages docker # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker docker-compose # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker-compose git # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git kubectl # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/kubectl pyenv # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/pyenv fzf # https://github.com/junegunn/fzf fzf-tab # https://github.com/Aloxaf/fzf-tab zsh-autosuggestions # https://github.com/zsh-users/zsh-autosuggestions zsh-syntax-highlighting # https://github.com/zsh-users/zsh-syntax-highlighting ) @@ -156,6 +159,9 @@ typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=2 typeset -g POWERLEVEL9K_TIME_BACKGROUND=237 typeset -g POWERLEVEL9K_TIME_FOREGROUND=249 # java export JAVA_HOME=$(/usr/libexec/java_home) # python export PYTHONDONTWRITEBYTECODE=1 # export VENV_PATH="$HOME/.virtualenvs" @@ -180,6 +186,10 @@ eval "$(goenv init -)" export PATH="$PATH:$GOROOT/bin" export PATH="$PATH:$GOPATH/bin" # fzf https://github.com/junegunn/fzf#installation # [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh export FZF_DEFAULT_OPTS='--height 80% --layout=reverse' # nvm export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -
ar2pi revised this gist
Aug 29, 2021 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -140,10 +140,13 @@ typeset -g POWERLEVEL9K_NVM_BACKGROUND=22 typeset -g POWERLEVEL9K_NVM_FOREGROUND=249 typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=237 typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=255 typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=217 typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=73 typeset -g POWERLEVEL9K_PYENV_BACKGROUND=26 typeset -g POWERLEVEL9K_PYENV_FOREGROUND=249 typeset -g POWERLEVEL9K_STATUS_ERROR=true typeset -g POWERLEVEL9K_STATUS_ERROR_BACKGROUND=236 typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=5 typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_BACKGROUND=236 typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=5 typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_BACKGROUND=236 -
ar2pi revised this gist
Aug 25, 2021 . 1 changed file with 11 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -130,18 +130,26 @@ typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( # =========================[ Line #2 ]========================= newline ) typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND=236 typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=11 typeset -g POWERLEVEL9K_DIR_BACKGROUND=62 typeset -g POWERLEVEL9K_DIR_FOREGROUND=254 typeset -g POWERLEVEL9K_GOENV_BACKGROUND=39 typeset -g POWERLEVEL9K_GOENV_FOREGROUND=237 typeset -g POWERLEVEL9K_NVM_BACKGROUND=22 typeset -g POWERLEVEL9K_NVM_FOREGROUND=249 typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=237 typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=255 typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=73 typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=218 typeset -g POWERLEVEL9K_PYENV_BACKGROUND=26 typeset -g POWERLEVEL9K_PYENV_FOREGROUND=249 typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_BACKGROUND=236 typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=5 typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_BACKGROUND=236 typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=5 typeset -g POWERLEVEL9K_STATUS_OK_PIPE_BACKGROUND=236 typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=2 typeset -g POWERLEVEL9K_TIME_BACKGROUND=237 typeset -g POWERLEVEL9K_TIME_FOREGROUND=249 -
ar2pi revised this gist
Aug 21, 2021 . 1 changed file with 14 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -120,8 +120,8 @@ typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( status # exit code of the last command command_execution_time # duration of the last command background_jobs # presence of background jobs pyenv # python environment (https://github.com/pyenv/pyenv) goenv # go environment (https://github.com/syndbg/goenv) nvm # node.js version from nvm (https://github.com/nvm-sh/nvm) kubecontext # current kubernetes context (https://kubernetes.io/) terraform # terraform workspace (https://www.terraform.io) @@ -132,18 +132,18 @@ typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( ) typeset -g POWERLEVEL9K_DIR_BACKGROUND=62 typeset -g POWERLEVEL9K_DIR_FOREGROUND=254 typeset -g POWERLEVEL9K_GOENV_BACKGROUND=39 typeset -g POWERLEVEL9K_GOENV_FOREGROUND=237 typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=237 typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=255 typeset -g POWERLEVEL9K_NVM_BACKGROUND=22 typeset -g POWERLEVEL9K_NVM_FOREGROUND=249 typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=73 typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=217 typeset -g POWERLEVEL9K_PYENV_BACKGROUND=26 typeset -g POWERLEVEL9K_PYENV_FOREGROUND=249 typeset -g POWERLEVEL9K_TIME_BACKGROUND=237 typeset -g POWERLEVEL9K_TIME_FOREGROUND=249 # python export PYTHONDONTWRITEBYTECODE=1 @@ -179,17 +179,16 @@ load-nvmrc() { local node_version="$(nvm version)" local nvmrc_path="$(nvm_find_nvmrc)" if [[ -n $nvmrc_path ]]; then local nvmrc_node_version=$(nvm version $(cat ${nvmrc_path})) if [[ $nvmrc_node_version = "N/A" ]]; then nvm install elif [[ $nvmrc_node_version != $node_version ]]; then nvm use > /dev/null fi elif [[ $node_version != "$(nvm version default)" ]]; then nvm use default > /dev/null fi } add-zsh-hook chpwd load-nvmrc -
ar2pi revised this gist
Aug 20, 2021 . 1 changed file with 9 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -159,8 +159,15 @@ eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)" # go # export GOBIN="/usr/local/go/bin" # export PATH="$PATH:$GOBIN" # goenv export GOENV_ROOT="$HOME/.goenv" export PATH="$PATH:$GOENV_ROOT/bin" eval "$(goenv init -)" export PATH="$PATH:$GOROOT/bin" export PATH="$PATH:$GOPATH/bin" # nvm export NVM_DIR="$HOME/.nvm" -
ar2pi revised this gist
Aug 20, 2021 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -203,3 +203,6 @@ zstyle :bracketed-paste-magic paste-finish pastefinish # pbcopy / pbpaste alias pbcopy="xclip -selection clipboard" alias pbpaste="xclip -selection clipboard -o" # kubecolor alias kubectl="kubecolor" -
ar2pi revised this gist
Aug 20, 2021 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -121,7 +121,7 @@ typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( command_execution_time # duration of the last command background_jobs # presence of background jobs virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html) go_version # go version (https://golang.org) nvm # node.js version from nvm (https://github.com/nvm-sh/nvm) kubecontext # current kubernetes context (https://kubernetes.io/) terraform # terraform workspace (https://www.terraform.io) @@ -132,8 +132,8 @@ typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( ) typeset -g POWERLEVEL9K_DIR_BACKGROUND=62 typeset -g POWERLEVEL9K_DIR_FOREGROUND=254 typeset -g POWERLEVEL9K_GO_VERSION_BACKGROUND=39 typeset -g POWERLEVEL9K_GO_VERSION_FOREGROUND=237 typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=237 typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=135 typeset -g POWERLEVEL9K_NVM_BACKGROUND=22 -
ar2pi revised this gist
Aug 20, 2021 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -135,15 +135,15 @@ typeset -g POWERLEVEL9K_DIR_FOREGROUND=254 typeset -g POWERLEVEL9K_GOENV_BACKGROUND=39 typeset -g POWERLEVEL9K_GOENV_FOREGROUND=237 typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=237 typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=135 typeset -g POWERLEVEL9K_NVM_BACKGROUND=22 typeset -g POWERLEVEL9K_NVM_FOREGROUND=249 typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=73 typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=217 typeset -g POWERLEVEL9K_TIME_BACKGROUND=237 typeset -g POWERLEVEL9K_TIME_FOREGROUND=249 typeset -g POWERLEVEL9K_VIRTUALENV_BACKGROUND=26 typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=249 # python export PYTHONDONTWRITEBYTECODE=1 -
ar2pi revised this gist
Aug 20, 2021 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -132,12 +132,18 @@ typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( ) typeset -g POWERLEVEL9K_DIR_BACKGROUND=62 typeset -g POWERLEVEL9K_DIR_FOREGROUND=254 typeset -g POWERLEVEL9K_GOENV_BACKGROUND=39 typeset -g POWERLEVEL9K_GOENV_FOREGROUND=237 typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=237 typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=255 typeset -g POWERLEVEL9K_NVM_BACKGROUND=22 typeset -g POWERLEVEL9K_NVM_FOREGROUND=8 typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=73 typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=217 typeset -g POWERLEVEL9K_TIME_BACKGROUND=237 typeset -g POWERLEVEL9K_TIME_FOREGROUND=249 typeset -g POWERLEVEL9K_VIRTUALENV_BACKGROUND=26 typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=8 # python export PYTHONDONTWRITEBYTECODE=1 -
ar2pi revised this gist
Aug 20, 2021 . 1 changed file with 52 additions and 38 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,18 +9,18 @@ fi # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="/home/r2/.oh-my-zsh" # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes # ZSH_THEME="robbyrussell" ZSH_THEME="powerlevel10k/powerlevel10k" # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load # a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ # If set to an empty array, this variable will have no effect. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) @@ -34,15 +34,9 @@ ZSH_THEME="powerlevel10k/powerlevel10k" # Uncomment the following line to disable bi-weekly auto-update checks. # DISABLE_AUTO_UPDATE="true" # Uncomment the following line to change how often to auto-update (in days). # export UPDATE_ZSH_DAYS=13 # Uncomment the following line to disable colors in ls. # DISABLE_LS_COLORS="true" @@ -71,21 +65,20 @@ ZSH_THEME="powerlevel10k/powerlevel10k" # Would you like to use another custom folder than $ZSH/custom? # ZSH_CUSTOM=/path/to/new-custom-folder ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20 ZSH_HIGHLIGHT_MAXLENGTH=80 # Which plugins would you like to load? # Standard plugins can be found in ~/.oh-my-zsh/plugins/* # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=( aws # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/aws colored-man-pages # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/colored-man-pages docker # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker docker-compose # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker-compose git # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git kubectl # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/kubectl zsh-autosuggestions # https://github.com/zsh-users/zsh-autosuggestions zsh-syntax-highlighting # https://github.com/zsh-users/zsh-syntax-highlighting @@ -122,6 +115,47 @@ source $ZSH/oh-my-zsh.sh # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( # =========================[ Line #1 ]========================= status # exit code of the last command command_execution_time # duration of the last command background_jobs # presence of background jobs virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html) goenv # go environment (https://github.com/syndbg/goenv) nvm # node.js version from nvm (https://github.com/nvm-sh/nvm) kubecontext # current kubernetes context (https://kubernetes.io/) terraform # terraform workspace (https://www.terraform.io) aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) time # current time # =========================[ Line #2 ]========================= newline ) typeset -g POWERLEVEL9K_DIR_BACKGROUND=62 typeset -g POWERLEVEL9K_DIR_FOREGROUND=254 typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=237 typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=135 typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=73 typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=217 typeset -g POWERLEVEL9K_TIME_BACKGROUND=237 typeset -g POWERLEVEL9K_TIME_FOREGROUND=249 # python export PYTHONDONTWRITEBYTECODE=1 # export VENV_PATH="$HOME/.virtualenvs" # source $VENV_PATH/python3.7/bin/activate # pyenv-virtualenv # see https://github.com/pyenv/pyenv-virtualenv export PYENV_ROOT="$HOME/.pyenv" export PATH="$PATH:$PYENV_ROOT/bin" eval "$(pyenv init --path)" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)" # go export GOBIN="/usr/local/go/bin" export PATH="$PATH:$GOBIN" # nvm export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm @@ -148,30 +182,6 @@ load-nvmrc() { add-zsh-hook chpwd load-nvmrc load-nvmrc # This speeds up pasting w/ autosuggest # https://github.com/zsh-users/zsh-autosuggestions/issues/238 pasteinit() { @@ -183,3 +193,7 @@ pastefinish() { } zstyle :bracketed-paste-magic paste-init pasteinit zstyle :bracketed-paste-magic paste-finish pastefinish # pbcopy / pbpaste alias pbcopy="xclip -selection clipboard" alias pbpaste="xclip -selection clipboard -o" -
ar2pi revised this gist
Aug 20, 2021 . 1 changed file with 93 additions and 206 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,143 +1,26 @@ # 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 # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="/Users/picerart/.oh-my-zsh" # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes #ZSH_THEME="robbyrussell" ZSH_THEME="powerlevel10k/powerlevel10k" # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load # a theme from this variable instead of looking in $ZSH/themes/ # If set to an empty array, this variable will have no effect. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) @@ -151,9 +34,15 @@ POWERLEVEL9K_BATTERY_DISCONNECTED_BACKGROUND="$DEFAULT_BACKGROUND" # Uncomment the following line to disable bi-weekly auto-update checks. # DISABLE_AUTO_UPDATE="true" # Uncomment the following line to automatically update without prompting. # DISABLE_UPDATE_PROMPT="true" # Uncomment the following line to change how often to auto-update (in days). # export UPDATE_ZSH_DAYS=13 # Uncomment the following line if pasting URLs and other text is messed up. # DISABLE_MAGIC_FUNCTIONS="true" # Uncomment the following line to disable colors in ls. # DISABLE_LS_COLORS="true" @@ -182,37 +71,28 @@ POWERLEVEL9K_BATTERY_DISCONNECTED_BACKGROUND="$DEFAULT_BACKGROUND" # Would you like to use another custom folder than $ZSH/custom? # ZSH_CUSTOM=/path/to/new-custom-folder ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#9e9e9e" ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20 ZSH_HIGHLIGHT_MAXLENGTH=80 # Which plugins would you like to load? # Standard plugins can be found in $ZSH/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=( aws # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/aws colored-man-pages # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/colored-man-pages docker # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker docker-compose # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker-compose git # https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git kubectl # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/kubectl zsh-autosuggestions # https://github.com/zsh-users/zsh-autosuggestions zsh-syntax-highlighting # https://github.com/zsh-users/zsh-syntax-highlighting ) source $ZSH/oh-my-zsh.sh # User configuration # export MANPATH="/usr/local/man:$MANPATH" @@ -230,9 +110,6 @@ zstyle ":bracketed-paste-magic" active-widgets ".self-*" # Compilation flags # export ARCHFLAGS="-arch x86_64" # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. Aliases can be placed here, though oh-my-zsh # users are encouraged to define aliases within the ZSH_CUSTOM folder. @@ -242,57 +119,67 @@ export SSH_KEY_PATH="~/.ssh/rsa_id" # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # nvm export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [[ -r "$NVM_DIR/bash_completion" ]] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion # call `nvm use` automatically in a directory with a .nvmrc file autoload -U add-zsh-hook load-nvmrc() { local node_version="$(nvm version)" local nvmrc_path="$(nvm_find_nvmrc)" if [ -n "$nvmrc_path" ]; then local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") if [ "$nvmrc_node_version" = "N/A" ]; then nvm install elif [ "$nvmrc_node_version" != "$node_version" ]; then nvm use fi elif [ "$node_version" != "$(nvm version default)" ]; then echo "Reverting to nvm default version" nvm use default fi } add-zsh-hook chpwd load-nvmrc load-nvmrc # groovy export PATH="$PATH:/usr/local/opt/openjdk/bin" export GROOVY_HOME="/usr/local/opt/groovy/libexec" # for helm@2 # export PATH="/usr/local/opt/helm@2/bin:$PATH" # kubectl config folders export KUBECONFIG="$KUBECONFIG:$HOME/.kube/config" # pyenv-virtualenv # see https://github.com/pyenv/pyenv-virtualenv export PYENV_ROOT="$HOME/.pyenv" export PATH="$PATH:$PYENV_ROOT/bin" export PYENV_VIRTUALENV_DISABLE_PROMPT=1 eval "$(pyenv init --path)" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)" # go export GOPATH="$HOME/go" export GOBIN="$HOME/go/bin" export PATH="$PATH:$GOBIN" # This speeds up pasting w/ autosuggest # https://github.com/zsh-users/zsh-autosuggestions/issues/238 pasteinit() { OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]} zle -N self-insert url-quote-magic } pastefinish() { zle -N self-insert $OLD_SELF_INSERT } zstyle :bracketed-paste-magic paste-init pasteinit zstyle :bracketed-paste-magic paste-finish pastefinish -
ar2pi revised this gist
Feb 28, 2020 . 1 changed file with 298 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1,298 @@ # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="/Users/picerna/.oh-my-zsh" # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes ZSH_THEME="powerlevel9k/powerlevel9k" # avit, robbyrussell, agnoster # DEFAULT_FOREGROUND=006 # DEFAULT_BACKGROUND=235 # DEFAULT_COLOR=$DEFAULT_FOREGROUND # Easily switch primary foreground/background colors DEFAULT_FOREGROUND=006 DEFAULT_BACKGROUND=235 DEFAULT_COLOR=$DEFAULT_FOREGROUND # powerlevel9k prompt theme #DEFAULT_USER=$USER POWERLEVEL9K_MODE="nerdfont-complete" POWERLEVEL9K_SHORTEN_DIR_LENGTH=3 #POWERLEVEL9K_SHORTEN_STRATEGY="truncate_right" POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER=false POWERLEVEL9K_ALWAYS_SHOW_CONTEXT=true POWERLEVEL9K_ALWAYS_SHOW_USER=false POWERLEVEL9K_CONTEXT_TEMPLATE="\uF109 %m" POWERLEVEL9K_CONTEXT_DEFAULT_FOREGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_CONTEXT_DEFAULT_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_CONTEXT_ROOT_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR="\uE0B4" POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR="%F{$(( $DEFAULT_BACKGROUND - 2 ))}|%f" POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR="\uE0B6" POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR="%F{$(( $DEFAULT_BACKGROUND - 2 ))}|%f" POWERLEVEL9K_PROMPT_ON_NEWLINE=true POWERLEVEL9K_RPROMPT_ON_NEWLINE=false POWERLEVEL9K_STATUS_VERBOSE=true POWERLEVEL9K_STATUS_CROSS=true POWERLEVEL9K_PROMPT_ADD_NEWLINE=true #POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="%F{cyan}\u256D\u2500%f" #POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%F{014}\u2570%F{cyan}\uF460%F{073}\uF460%F{109}\uF460%f " #POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="╭─%f" #POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="╰─%F{008}\uF460 %f" #POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="" #POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%F{008}> %f" POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="╭" #POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX="❱ " POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="╰\uF460 " #POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context ssh root_indicator dir_writable dir ) #POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon root_indicator context dir_writable dir vcs) POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator context dir_writable dir vcs) POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(command_execution_time background_jobs status time ssh) POWERLEVEL9K_VCS_CLEAN_BACKGROUND="green" POWERLEVEL9K_VCS_CLEAN_FOREGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_VCS_MODIFIED_BACKGROUND="yellow" POWERLEVEL9K_VCS_MODIFIED_FOREGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND="magenta" POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_DIR_HOME_BACKGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_DIR_HOME_FOREGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_DIR_DEFAULT_BACKGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_DIR_WRITABLE_FORBIDDEN_BACKGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_DIR_WRITABLE_FORBIDDEN_FOREGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_STATUS_OK_FOREGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_STATUS_OK_FOREGROUND="green" POWERLEVEL9K_STATUS_OK_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_STATUS_OK_BACKGROUND="$(( $DEFAULT_BACKGROUND + 2 ))" POWERLEVEL9K_STATUS_ERROR_FOREGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_STATUS_ERROR_FOREGROUND="red" POWERLEVEL9K_STATUS_ERROR_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_STATUS_ERROR_BACKGROUND="$(( $DEFAULT_BACKGROUND + 2 ))" POWERLEVEL9K_HISTORY_FOREGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_TIME_FORMAT="%D{%T \uF017}" # 15:29:33 POWERLEVEL9K_TIME_FORMAT="%D{%H:%M}" # 15:29 POWERLEVEL9K_TIME_FOREGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_TIME_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_VCS_GIT_GITHUB_ICON="" POWERLEVEL9K_VCS_GIT_BITBUCKET_ICON="" POWERLEVEL9K_VCS_GIT_GITLAB_ICON="" POWERLEVEL9K_VCS_GIT_ICON="" POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_EXECUTION_TIME_ICON="\u23F1" #POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=0 #POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0 POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_USER_ICON="\uF415" # POWERLEVEL9K_USER_DEFAULT_FOREGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_USER_DEFAULT_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_USER_ROOT_FOREGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_USER_ROOT_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_ROOT_INDICATOR_FOREGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_ROOT_INDICATOR_FOREGROUND="magenta" POWERLEVEL9K_ROOT_INDICATOR_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_ROOT_INDICATOR_BACKGROUND="$(( $DEFAULT_BACKGROUND + 2 ))" POWERLEVEL9K_ROOT_INDICATOR_BACKGROUND="$(( $DEFAULT_BACKGROUND - 2 ))" #POWERLEVEL9K_ROOT_ICON=$'\uFF03' # # POWERLEVEL9K_ROOT_ICON=$'\uF198' # POWERLEVEL9K_SSH_FOREGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_SSH_FOREGROUND="yellow" POWERLEVEL9K_SSH_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_SSH_BACKGROUND="$(( $DEFAULT_BACKGROUND + 2 ))" POWERLEVEL9K_SSH_BACKGROUND="$(( $DEFAULT_BACKGROUND - 2 ))" POWERLEVEL9K_SSH_ICON="\uF489" # POWERLEVEL9K_HOST_LOCAL_FOREGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_HOST_LOCAL_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_HOST_REMOTE_FOREGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_HOST_REMOTE_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_HOST_ICON_FOREGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_HOST_ICON_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_HOST_ICON="\uF109" # POWERLEVEL9K_OS_ICON_FOREGROUND="$DEFAULT_FOREGROUND" POWERLEVEL9K_OS_ICON_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_LOAD_CRITICAL_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_LOAD_WARNING_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_LOAD_NORMAL_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND="red" POWERLEVEL9K_LOAD_WARNING_FOREGROUND="yellow" POWERLEVEL9K_LOAD_NORMAL_FOREGROUND="green" POWERLEVEL9K_LOAD_CRITICAL_VISUAL_IDENTIFIER_COLOR="red" POWERLEVEL9K_LOAD_WARNING_VISUAL_IDENTIFIER_COLOR="yellow" POWERLEVEL9K_LOAD_NORMAL_VISUAL_IDENTIFIER_COLOR="green" POWERLEVEL9K_BATTERY_LEVEL_BACKGROUND_COLOR="$DEFAULT_BACKGROUND" POWERLEVEL9K_BATTERY_CHARGING_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_BATTERY_CHARGED_BACKGROUND="$DEFAULT_BACKGROUND" POWERLEVEL9K_BATTERY_DISCONNECTED_BACKGROUND="$DEFAULT_BACKGROUND" # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load # a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ # If set to an empty array, this variable will have no effect. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) # Uncomment the following line to use case-sensitive completion. # CASE_SENSITIVE="true" # Uncomment the following line to use hyphen-insensitive completion. # Case-sensitive completion must be off. _ and - will be interchangeable. # HYPHEN_INSENSITIVE="true" # Uncomment the following line to disable bi-weekly auto-update checks. # DISABLE_AUTO_UPDATE="true" # Uncomment the following line to change how often to auto-update (in days). # export UPDATE_ZSH_DAYS=13 # Uncomment the following line to disable colors in ls. # DISABLE_LS_COLORS="true" # Uncomment the following line to disable auto-setting terminal title. # DISABLE_AUTO_TITLE="true" # Uncomment the following line to enable command auto-correction. # ENABLE_CORRECTION="true" # Uncomment the following line to display red dots whilst waiting for completion. # COMPLETION_WAITING_DOTS="true" # Uncomment the following line if you want to disable marking untracked files # under VCS as dirty. This makes repository status check for large repositories # much, much faster. # DISABLE_UNTRACKED_FILES_DIRTY="true" # Uncomment the following line if you want to change the command execution time # stamp shown in the history command output. # You can set one of the optional three formats: # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" # or set a custom format using the strftime function format specifications, # see 'man strftime' for details. # HIST_STAMPS="mm/dd/yyyy" # Would you like to use another custom folder than $ZSH/custom? # ZSH_CUSTOM=/path/to/new-custom-folder # Which plugins would you like to load? # Standard plugins can be found in ~/.oh-my-zsh/plugins/* # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=( colored-man-pages docker docker-compose git virtualenv zsh-autosuggestions zsh-syntax-highlighting ) source $ZSH/oh-my-zsh.sh setopt correct setopt autocd setopt hist_find_no_dups setopt hist_ignore_dups setopt hist_reduce_blanks setopt hist_save_no_dups bindkey "^a" beginning-of-line bindkey "^e" end-of-line bindkey "^[D" backward-word bindkey "^[C" forward-word zstyle ":bracketed-paste-magic" active-widgets ".self-*" # User configuration # export MANPATH="/usr/local/man:$MANPATH" # You may need to manually set your language environment # export LANG=en_US.UTF-8 # Preferred editor for local and remote sessions # if [[ -n $SSH_CONNECTION ]]; then # export EDITOR='vim' # else # export EDITOR='mvim' # fi # Compilation flags # export ARCHFLAGS="-arch x86_64" # ssh export SSH_KEY_PATH="~/.ssh/rsa_id" # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. Aliases can be placed here, though oh-my-zsh # users are encouraged to define aliases within the ZSH_CUSTOM folder. # For a full list of active aliases, run `alias`. # # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/opt:/opt/local/bin:/opt/local/sbin:$HOME/bin:$PATH" export ANDROID_HOME="$HOME/Library/Android/sdk" export PATH="$PATH:$ANDROID_HOME/tools" export PATH="$PATH:$ANDROID_HOME/tools/bin" export PATH="$PATH:$ANDROID_HOME/platform-tools" # Python executables (installed via pip) export PATH="$PATH:$HOME/Library/Python/2.7/bin:/usr/local/lib/python2.7/site-packages" export PATH="$PATH:/Library/Python/2.7/bin" export PATH="$PATH:$HOME/Library/Python/3.7/bin:/usr/local/lib/python3.7/site-packages" export PATH="$PATH:/Library/Python/3.7/bin" # Python virtual envs path export VENV_PATH="$HOME/.virtualenvs" export PYTHONDONTWRITEBYTECODE=true source "$VENV_PATH/py2.7_grow0.4.2/bin/activate" echo "Loaded python virtualenv `virtualenv_prompt_info`" # Ruby RVM export PATH="$PATH:$HOME/.rvm/bin" [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* # libreadline export LDFLAGS="-L/usr/local/opt/readline/lib" export CPPFLAGS="-I/usr/local/opt/readline/include" export LANG="en_US.UTF-8" export LC_ALL="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8" #function homestead() { # ( cd /var/www/vagrant/homestead && vagrant $* ) #} # Node NVM export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion # The next line updates PATH for the Google Cloud SDK. if [ -f '/Users/picerna/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/picerna/google-cloud-sdk/path.zsh.inc'; fi # The next line enables shell command completion for gcloud. if [ -f '/Users/picerna/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/picerna/google-cloud-sdk/completion.zsh.inc'; fi # alias all teh stuff!! alias venv_current="virtualenv_prompt_info" alias gph="git push origin HEAD:refs/for/master" alias gcm_gp="git checkout master && git pull" alias gpr="git pull origin master --rebase --autostash" alias gcaam="git add . && git commit --amend" alias clean="rm -rvf **/*.pyc && rm -rvf **/*.orig" alias pyenv-aws="source $VENV_PATH/py3.7_aws/bin/activate && echo 'Loaded python virtualenv' && virtualenv_prompt_info" -
ar2pi created this gist
Feb 28, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ //