Replace Powerline as xonsh prompt
This commit is contained in:
@@ -10,7 +10,7 @@ $fzf_history_binding = "c-r"
|
|||||||
_xontribs = [
|
_xontribs = [
|
||||||
"vox",
|
"vox",
|
||||||
"fzf-widgets",
|
"fzf-widgets",
|
||||||
"powerline_binding",
|
# "powerline_binding",
|
||||||
]
|
]
|
||||||
|
|
||||||
if _xontribs:
|
if _xontribs:
|
||||||
@@ -90,6 +90,12 @@ if $TERM == "dumb":
|
|||||||
$PROMPT = "$ "
|
$PROMPT = "$ "
|
||||||
$RIGHT_PROMPT = None
|
$RIGHT_PROMPT = None
|
||||||
$BOTTOM_TOOLBAR = 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
|
# autojump equivalent
|
||||||
if shutil.which("zoxide"):
|
if shutil.which("zoxide"):
|
||||||
|
|||||||
Reference in New Issue
Block a user