Replace Powerline as xonsh prompt
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user