Skip to content

Instantly share code, notes, and snippets.

@rahman541
Last active March 29, 2019 16:53
Show Gist options
  • Save rahman541/72ed79e23b9f3bdcfd3693e880348298 to your computer and use it in GitHub Desktop.
Save rahman541/72ed79e23b9f3bdcfd3693e880348298 to your computer and use it in GitHub Desktop.
Custom oh-my-zsh powerlevel9k
# https://github.com/bhilburn/powerlevel9k/wiki/Show-Off-Your-Config#kayants-configuration
# https://github.com/bhilburn/powerlevel9k/wiki/Show-Off-Your-Config#tunnckocore-configuration
POWERLEVEL9K_MODE='awesome-patched'
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
os_icon root_indicator context dir vcs
)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status time background_jobs ram)
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_STATUS_VERBOSE=false
POWERLEVEL9K_TIME_FORMAT="%D{%L:%M \uE868 %d/%m}"
# POWERLEVEL9K_TIME_FORMAT='%D{%H:%M %p}'
POWERLEVEL9K_TIME_12HR=true
export DEFAULT_USER="$USER"
POWERLEVEL9K_RAM_BACKGROUND="black"
POWERLEVEL9K_RAM_FOREGROUND="249"
POWERLEVEL9K_RAM_ELEMENTS=(ram_free)
# My edit
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
POWERLEVEL9K_OS_ICON_BACKGROUND="white"
POWERLEVEL9K_OS_ICON_FOREGROUND="blue"
POWERLEVEL9K_DIR_HOME_FOREGROUND="white"
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="white"
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="white"
# Create a custom JavaScript prompt section: custom_javascript
# https://medium.com/the-code-review/powerlevel9k-personalise-your-prompt-for-any-programming-language-68974c127c63
# POWERLEVEL9K_CUSTOM_JAVASCRIPT="echo -n '\ue781' JavaScript"
# POWERLEVEL9K_CUSTOM_JAVASCRIPT_FOREGROUND="black"
# OWERLEVEL9K_CUSTOM_JAVASCRIPT_BACKGROUND="yellow"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment