Change to powerlevel-9k and set it up

This commit is contained in:
Andrew Holland 2018-02-21 18:37:28 +00:00
parent a8d6c1c7b8
commit 90bc6fe551
2 changed files with 23 additions and 5 deletions

16
powerlevel_vars Normal file
View file

@ -0,0 +1,16 @@
POWERLEVEL9K_MODE=nerdfont-complete
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( root_indicator ssh virtualenv context dir disk_usage ram newline vcs )
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status background_jobs battery os_icon time )
POWERLEVEL9K_BATTERY_STAGES=(
$'▏ ▏' $'▎ ▏' $'▍ ▏' $'▌ ▏' $'▋ ▏' $'▊ ▏' $'▉ ▏' $'█ ▏'
$'█▏ ▏' $'█▎ ▏' $'█▍ ▏' $'█▌ ▏' $'█▋ ▏' $'█▊ ▏' $'█▉ ▏' $'██ ▏'
$'██ ▏' $'██▎ ▏' $'██▍ ▏' $'██▌ ▏' $'██▋ ▏' $'██▊ ▏' $'██▉ ▏' $'███ ▏'
$'███ ▏' $'███▎ ▏' $'███▍ ▏' $'███▌ ▏' $'███▋ ▏' $'███▊ ▏' $'███▉ ▏' $'████ ▏'
$'████ ▏' $'████▎▏' $'████▍▏' $'████▌▏' $'████▋▏' $'████▊▏' $'████▉▏' $'█████▏' )
POWERLEVEL9K_VCS_GIT_GITLAB_ICON=🤘
POWERLEVEL9K_USER_ROOT_BACKGROUND=red
POWERLEVEL9K_USER_ROOT_FOREGROUND=white
POWERLEVEL9K_DIR_DEFAULT_BACKGROUND=202
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND=020
POWERLEVEL9K_HOST_REMOTE_BACKGROUND=016
POWERLEVEL9K_HOST_REMOTE_FOREGROUND=082

12
zshrc
View file

@ -58,13 +58,15 @@ if ! zgen saved; then
zgen save zgen save
fi fi
. ~/bin/aliases
#prompt fire 178 142 106 070 034 #prompt fire 178 142 106 070 034
prompt powerline
# powerline . ~/bin/aliases
#source ~/bin/powerline_init if [[ ${TERM} == linux ]]; then
prompt pure
else
. ~/bin/powerlevel_vars
prompt powerlevel9k
fi
#alias t=todo.sh #alias t=todo.sh