Created
October 30, 2017 18:06
-
-
Save jaakkolehtonen/c971fea0dfd196ef18c0eca70926e2c1 to your computer and use it in GitHub Desktop.
Example .zshrc for custom @ohmyzsh config
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
# Set TERM to xterm-256color | |
export TERM="xterm-256color" | |
# Set PATH to common default binaries | |
export PATH="/usr/bin:/bin:/usr/sbin:/sbin" | |
# Change the default install directory of Oh My Zsh | |
export ZSH="$HOME/.zsh/oh-my-zsh" | |
# Use another customization directory | |
ZSH_CUSTOM="$HOME/.zsh/custom" | |
# Name of the theme to load | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
# Powerlevel9k theme settings | |
POWERLEVEL9K_MODE="nerdfont-complete" | |
POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="╭─\uf105" | |
POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX="╰─\uf105" | |
POWERLEVEL9K_HOME_ICON="\uf015" | |
POWERLEVEL9K_HOME_SUB_ICON="\uf07c" | |
POWERLEVEL9K_FOLDER_ICON="\uf07b" | |
POWERLEVEL9K_SHORTEN_DIR_LENGTH=3 | |
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle" | |
POWERLEVEL9K_VCS_CLEAN_BACKGROUND="clear" | |
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND="clear" | |
POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND="clear" | |
POWERLEVEL9K_VCS_CLEAN_FOREGROUND="yellow" | |
POWERLEVEL9K_VCS_MODIFIED_FOREGROUND="yellow" | |
POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND="yellow" | |
POWERLEVEL9K_VCS_GIT_GITHUB_ICON="\uf09b" | |
POWERLEVEL9K_DIR_HOME_BACKGROUND="clear" | |
POWERLEVEL9K_DIR_HOME_FOREGROUND="blue" | |
POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND="clear" | |
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="blue" | |
POWERLEVEL9K_DIR_DEFAULT_BACKGROUND="clear" | |
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="white" | |
POWERLEVEL9K_ROOT_INDICATOR_BACKGROUND="red" | |
POWERLEVEL9K_ROOT_INDICATOR_FOREGROUND="white" | |
POWERLEVEL9K_STATUS_OK_BACKGROUND="clear" | |
POWERLEVEL9K_STATUS_OK_FOREGROUND="green" | |
POWERLEVEL9K_STATUS_ERROR_BACKGROUND="clear" | |
POWERLEVEL9K_STATUS_ERROR_FOREGROUND="red" | |
POWERLEVEL9K_TIME_BACKGROUND="clear" | |
POWERLEVEL9K_TIME_FOREGROUND="white" | |
POWERLEVEL9K_TIME_FORMAT="%D{ \uf017 %H:%M \uf073 %d.%m.%y}" | |
POWERLEVEL9K_STATUS_VERBOSE="false" | |
POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR="" | |
POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR="" | |
POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR="\uf105" | |
POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR="\uf104" | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(background_jobs root_indicator context dir vcs) | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status time) | |
# Load plugins | |
plugins=(git github osx npm sublime z zsh-autosuggestions zsh-completions) | |
# Reload zsh-completions | |
autoload -U compinit && compinit | |
# Source Oh My Zsh | |
source $ZSH/oh-my-zsh.sh | |
# Set default user | |
export DEFAULT_USER=$USER | |
# Add NPM to $PATH | |
export PATH="$HOME/npm/bin:$PATH" | |
# Shell integration | |
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" | |
# Oh My Zsh aliases | |
alias zshconfig="subl ~/Dropbox/oh-my-zsh/zshrc" | |
alias ohmyzsh="subl ~/.zsh/oh-my-zsh" | |
alias ohmyzshcustom="subl ~/.zsh/custom" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment