From 82679ea1e60042da762f9b1b03ce27f5a995907b Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Thu, 21 Oct 2021 09:54:28 -0700 Subject: [PATCH] Replace Powerline as xonsh prompt --- xonsh/rc.xsh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xonsh/rc.xsh b/xonsh/rc.xsh index 3d0ddf3..78e05d3 100644 --- a/xonsh/rc.xsh +++ b/xonsh/rc.xsh @@ -10,7 +10,7 @@ $fzf_history_binding = "c-r" _xontribs = [ "vox", "fzf-widgets", - "powerline_binding", + # "powerline_binding", ] if _xontribs: @@ -90,6 +90,12 @@ if $TERM == "dumb": $PROMPT = "$ " $RIGHT_PROMPT = None $BOTTOM_TOOLBAR = None +else: + $PROMPT = \ + "{bg#2E3440}{RED}{localtime} " \ + "{#5E6470}\ue0b1 {YELLOW}{user}{DEFAULT}@{GREEN}{hostname} " \ + "{#5E6470}\ue0b1 {BLUE}{short_cwd} {DEFAULT}{env_name}{RESET}{#2E3440}\ue0b0\n" \ + "{RESET}{INTENSE_GREEN}{prompt_end}{RESET} " # autojump equivalent if shutil.which("zoxide"):