Zsh configs for your terminal

June 3, 2019

Edit your zshrc file and reload with source!

# Load Nerd Fonts with Powerlevel9k theme for Zsh
 POWERLEVEL9K_MODE='nerdfont-complete'
 source ~/powerlevel9k/powerlevel9k.zsh-theme

 # Font mode for powerlevel9k
 P9K_MODE="nerdfont-complete"

 POWERLEVEL9K_CUSTOM_WIFI_SIGNAL="zsh_wifi_signal"
 POWERLEVEL9K_CUSTOM_WIFI_SIGNAL_BACKGROUND="white"
 POWERLEVEL9K_CUSTOM_WIFI_SIGNAL_FOREGROUND="black"

 P9K_VCS_GIT_ICON=$'\uf1d2 '
 P9K_VCS_GIT_GITHUB_ICON=$'\uf113 '
 P9K_VCS_GIT_GITLAB_ICON=$'\uf296 '
 P9K_VCS_BRANCH_ICON=$''
 P9K_VCS_STAGED_ICON=$'\uf055'
 P9K_VCS_UNSTAGED_ICON=$'\uf421'
 P9K_VCS_UNTRACKED_ICON=$'\uf00d'
 P9K_VCS_INCOMING_CHANGES_ICON=$'\uf0ab '
 P9K_VCS_OUTGOING_CHANGES_ICON=$'\uf0aa'

 # VCS colours
 P9K_VCS_MODIFIED_BACKGROUND='blue'
 P9K_VCS_MODIFIED_FOREGROUND='black'
 P9K_VCS_UNTRACKED_BACKGROUND='green'
 P9K_VCS_UNTRACKED_FOREGROUND='black'
 P9K_VCS_CLEAN_BACKGROUND='green'
 P9K_VCS_CLEAN_FOREGROUND='black'

 # VCS CONFIG
 P9K_VCS_SHOW_CHANGESET=false
 POWERLEVEL9K_CONTEXT_TEMPLATE='%n'
 POWERLEVEL9K_CONTEXT_DEFAULT_FOREGROUND='white'
 POWERLEVEL9K_BATTERY_CHARGING='yellow'
 POWERLEVEL9K_BATTERY_CHARGED='green'
 POWERLEVEL9K_BATTERY_DISCONNECTED='$DEFAULT_COLOR'
 POWERLEVEL9K_BATTERY_LOW_THRESHOLD='10'
 POWERLEVEL9K_BATTERY_LOW_COLOR='red'
 POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=''
 POWERLEVEL9K_BATTERY_ICON='\uf1e6 '
 POWERLEVEL9K_PROMPT_ON_NEWLINE=true
 POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='yellow'
 POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND='yellow'
 POWERLEVEL9K_VCS_UNTRACKED_ICON='?'

 POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon context battery dir vcs)
 POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status time dir_writable ip )

 POWERLEVEL9K_SHORTEN_DIR_LENGTH=1

 POWERLEVEL9K_TIME_FORMAT="%D{\uf017 %H:%M \uf073 %m/%d/%y}"
 POWERLEVEL9K_TIME_BACKGROUND='white'
 POWERLEVEL9K_RAM_BACKGROUND='yellow'
 POWERLEVEL9K_LOAD_CRITICAL_BACKGROUND="white"
 POWERLEVEL9K_LOAD_WARNING_BACKGROUND="white"
 POWERLEVEL9K_LOAD_NORMAL_BACKGROUND="white"
 POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND="red"
 POWERLEVEL9K_LOAD_WARNING_FOREGROUND="yellow"
 POWERLEVEL9K_LOAD_NORMAL_FOREGROUND="black"
 POWERLEVEL9K_LOAD_CRITICAL_VISUAL_IDENTIFIER_COLOR="red"
 POWERLEVEL9K_LOAD_WARNING_VISUAL_IDENTIFIER_COLOR="yellow"
 POWERLEVEL9K_LOAD_NORMAL_VISUAL_IDENTIFIER_COLOR="green"
 POWERLEVEL9K_HOME_ICON=''
 POWERLEVEL9K_HOME_SUB_ICON=''
 POWERLEVEL9K_FOLDER_ICON=''
 POWERLEVEL9K_STATUS_VERBOSE=true
 POWERLEVEL9K_STATUS_CROSS=true

 POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="%F{blue}\u256D\u2500%f"
 POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%F{blue}\u2570\uf460%f "
 POWERLEVEL9K_SHOW_CHANGESET=true
 POWERLEVEL9K_CHANGESET_HASH_LENGTH=6

 plugins=(git gitfast )

 export DEFAULT_USER="$USER"