Created
November 10, 2017 17:26
-
-
Save rockchalkwushock/9eda5c98b08846d1d2a2b1955ab9e2c8 to your computer and use it in GitHub Desktop.
Current configuration
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
# https://github.com/robbyrussell/oh-my-zsh | |
# https://github.com/bhilburn/powerlevel9k | |
# http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html | |
# https://nerdfonts.com | |
################################################# | |
#---------------- ZSH Theme --------------------# | |
################################################# | |
POWERLEVEL9K_MODE='nerdfont-complete' | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
################################################# | |
#-------------- Powerlevel9k -------------------# | |
################################################# | |
DEFAULT_FOREGROUND=006 | |
DEFAULT_BACKGROUND=235 | |
# PROMPT ELEMENTS | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs) # DEFAULT: (context dir rbenv vcs) | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status node_version yarn_version root_indicator background_jobs time) # DEFAULT: (status root_indicator background_jobs history time) | |
# OVERRIDE DEFAULTS | |
POWERLEVEL9K_CONTEXT_TEMPLATE="%n" | |
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_TIME_FORMAT='%D{\uf017 %H%M \uf073 %d.%m.%y}' | |
POWERLEVEL9K_NODE_ICON='\ue718' | |
POWERLEVEL9K_VCS_BRANCH_ICON_ICON='\ue725' | |
POWERLEVEL9K_VCS_COMMIT_ICON_ICON='\ue729' | |
POWERLEVEL9K_VCS_GIT_ICON='' | |
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true | |
POWERLEVEL9K_SHORTEN_DIR_LENGTH=1 | |
################################################# | |
#---------------- Aliases ----------------------# | |
################################################# | |
alias clr="command clear" | |
alias globals="yarn global upgrade-interactive" | |
alias list="brew list; brew cask list; mas list" | |
alias makeBrew="brew bundle dump --force" | |
alias rmf="command rm -rf" | |
alias zs="source ~/.zshrc" | |
################################################# | |
#---------------- Exports ----------------------# | |
################################################# | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/rockchalkwushock/.oh-my-zsh | |
# NVM | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
# YARN GLOBAL BINARIES | |
export PATH="$PATH:`yarn global bin`" | |
# Make VS Code the default editor. | |
export EDITOR='code'; | |
# Golang | |
export GOPATH=$HOME/go | |
export GOROOT=/usr/local/opt/go/libexec | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin | |
################################################# | |
#---------------- Functions --------------------# | |
################################################# | |
# Yarn version | |
prompt_yarn_version() { | |
local yarn_version=$(yarn --version 2>/dev/null) | |
[[ -z "${yarn_version}" ]] && return | |
"$1_prompt_segment" "$0" "$2" "blue" "white" "Yarn ${yarn_version}" | |
} | |
################################################# | |
#----------------- Plugins ---------------------# | |
################################################# | |
plugins=( | |
brew | |
colored-man-pages | |
command-not-found | |
git | |
nvm | |
osx | |
yarn | |
) | |
source $ZSH/oh-my-zsh.sh | |
# Add Auto-Suggestion & Syntax-Highlighting to zsh. | |
# Installed using `brew`. | |
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh | |
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment