From 90bc6fe55166064765882f0a56b69ab9c09d7cf5 Mon Sep 17 00:00:00 2001 From: Andrew Holland Date: Wed, 21 Feb 2018 18:37:28 +0000 Subject: [PATCH] Change to powerlevel-9k and set it up --- powerlevel_vars | 16 ++++++++++++++++ zshrc | 12 +++++++----- 2 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 powerlevel_vars diff --git a/powerlevel_vars b/powerlevel_vars new file mode 100644 index 0000000..8790f0f --- /dev/null +++ b/powerlevel_vars @@ -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 diff --git a/zshrc b/zshrc index 9b61ff3..f266ae3 100644 --- a/zshrc +++ b/zshrc @@ -58,13 +58,15 @@ if ! zgen saved; then zgen save fi -. ~/bin/aliases - #prompt fire 178 142 106 070 034 -prompt powerline -# powerline -#source ~/bin/powerline_init +. ~/bin/aliases +if [[ ${TERM} == linux ]]; then + prompt pure +else + . ~/bin/powerlevel_vars + prompt powerlevel9k +fi #alias t=todo.sh