From cc6d21b63c8265c86daedef906973b0ed6705984 Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Wed, 9 Dec 2020 09:19:01 -0500 Subject: [PATCH] go back to powerline-go --- .bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 70e4756..5dd1317 100644 --- a/.bashrc +++ b/.bashrc @@ -60,9 +60,9 @@ PROMPT_COMMAND="history -a" shopt -s histappend function _update_ps1() { - PS1="$(powerline-rs --modules user,host,ssh,cwd,git,gitstage,root --shell bash $?)" + PS1="$(powerline-go -colorize-hostname -static-prompt-indicator -max-width 100 -modules "user,host,ssh,cwd,perms,git,jobs,exit" -modules-right "dotenv,kube" -newline -error $?)" } -if [[ $(which powerline-rs 2>/dev/null) && "$TERM" != "linux" && "$TERM_PROGRAM" != "vscode" ]]; then +if [[ $(which powerline-go 2>/dev/null) && "$TERM" != "linux" && "$TERM_PROGRAM" != "vscode" ]]; then PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND" else PS1='[\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w$(__git_ps1 " (%s)")\[\033[00m\]]\$ '