From f041fabe3f23566a2233c745fc706084e2cea75e Mon Sep 17 00:00:00 2001 From: Harri Lahtinen Date: Wed, 5 Dec 2018 23:04:57 +0200 Subject: [PATCH] spaceship prompt --- .zshrc | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.zshrc b/.zshrc index b2c512e..815877b 100644 --- a/.zshrc +++ b/.zshrc @@ -18,7 +18,8 @@ export ZSH=/home/hate/.oh-my-zsh # it'll load a random theme each time that oh-my-zsh is loaded. # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes #ZSH_THEME="agnoster" -ZSH_THEME="powerlevel9k/powerlevel9k" +ZSH_THEME="spaceship" +#ZSH_THEME="powerlevel9k/powerlevel9k" # Set list of themes to load # Setting this variable when ZSH_THEME=random # cause zsh load theme from this variable instead of @@ -162,7 +163,14 @@ if [ -f '/home/hate/google-cloud-sdk/path.zsh.inc' ]; then source '/home/hate/go if [ -f '/home/hate/google-cloud-sdk/completion.zsh.inc' ]; then source '/home/hate/google-cloud-sdk/completion.zsh.inc'; fi POWERLEVEL9K_MODE="nerd-complete" -POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs load ram disk_usage ip time) -#POWERLEVEL9K_VCS_GIT_ICON=$'\ue5fd' -POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(host context dir vcs) -#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(icons_test) +POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs load ram disk_usage ip battery time) +POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(host context dir vcs custom_wifi_signal) +POWERLEVEL9K_CUSTOM_WIFI_SIGNAL="echo signal: \$(nmcli device wifi | grep yes | awk '{print \$8}')" +POWERLEVEL9K_CUSTOM_WIFI_SIGNAL_BACKGROUND="blue" +POWERLEVEL9K_CUSTOM_WIFI_SIGNAL_FOREGROUND="yellow" +POWERLEVEL9K_BATTERY_STAGES=( + $'▏ ▏' $'▎ ▏' $'▍ ▏' $'▌ ▏' $'▋ ▏' $'▊ ▏' $'▉ ▏' $'█ ▏' + $'█▏ ▏' $'█▎ ▏' $'█▍ ▏' $'█▌ ▏' $'█▋ ▏' $'█▊ ▏' $'█▉ ▏' $'██ ▏' + $'██ ▏' $'██▎ ▏' $'██▍ ▏' $'██▌ ▏' $'██▋ ▏' $'██▊ ▏' $'██▉ ▏' $'███ ▏' + $'███ ▏' $'███▎ ▏' $'███▍ ▏' $'███▌ ▏' $'███▋ ▏' $'███▊ ▏' $'███▉ ▏' $'████ ▏' + $'████ ▏' $'████▎▏' $'████▍▏' $'████▌▏' $'████▋▏' $'████▊▏' $'████▉▏' $'█████▏' )