27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
# Fix prompt for Emacs TRAMP
|
|
# https://github.com/oh-my-fish/theme-bobthefish/issues/148
|
|
if $TERM == "dumb":
|
|
$PROMPT = "$ "
|
|
$RIGHT_PROMPT = None
|
|
$BOTTOM_TOOLBAR = None
|
|
else:
|
|
$PROMPT = \
|
|
"{bg#2E3440}{BOLD_GREEN}{localtime} " \
|
|
"{#5E6470}\ue0b1 {BOLD_YELLOW}{user}{DEFAULT}@{INTENSE_RED}{hostname} " \
|
|
"{#5E6470}\ue0b1 {CYAN}{short_cwd} {DEFAULT}{env_name}{RESET}{#2E3440}\ue0b0\n" \
|
|
"{RESET}{INTENSE_GREEN}{prompt_end}{RESET} "
|
|
# $PROMPT = '{env_name}{BOLD_GREEN}{user}{RESET}@{hostname}:{BOLD_GREEN}{cwd}{RESET}|{gitstatus}\n{BOLD_INTENSE_RED}➤{RESET} '
|
|
|
|
# # Color style to fix unreadable greys
|
|
# from xonsh.tools import register_custom_style
|
|
# ttm_style = {
|
|
# # Put custom overrides here
|
|
# # Discover list of styles by running "xonfig colors default"
|
|
# # Discover default mappings by cross referencing
|
|
# # https://github.com/xonsh/xonsh/blob/main/xonsh/style_tools.py
|
|
# # and
|
|
# # https://github.com/pygments/pygments/blob/master/pygments/styles/native.py
|
|
# }
|
|
# register_custom_style("ttm-style", ttm_style)
|
|
$XONSH_COLOR_STYLE = "stata-dark"
|