diff --git a/xonsh/alias.xsh b/xonsh/alias.xsh index d57f4c1..e1436c6 100644 --- a/xonsh/alias.xsh +++ b/xonsh/alias.xsh @@ -8,4 +8,5 @@ aliases["src"] = "source ~/.xonshrc" aliases["pubip"] = "curl icanhazip.com" -aliases["ll"] = lambda args: $[$LC_COLLATE='C' ls -lAh @(args)] +aliases["ll"] = lambda args: $[$LC_COLLATE='C' ls -lAh --color @(args)] +aliases["ls"] = "ls --color" diff --git a/xonsh/prompt.xsh b/xonsh/prompt.xsh index 2f2365c..2613713 100644 --- a/xonsh/prompt.xsh +++ b/xonsh/prompt.xsh @@ -5,10 +5,11 @@ if $TERM == "dumb": $RIGHT_PROMPT = None $BOTTOM_TOOLBAR = None else: + $DYNAMIC_CWD_WIDTH = "60%" $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" \ + "{bg#2E3440}{INTENSE_RED}{localtime} " \ + "{#5E6470}\ue0b1 {INTENSE_BLUE}{user}{DEFAULT}@{INTENSE_BLUE}{hostname} " \ + "{#5E6470}\ue0b1 {INTENSE_CYAN}{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} ' @@ -23,4 +24,4 @@ else: # # https://github.com/pygments/pygments/blob/master/pygments/styles/native.py # } # register_custom_style("ttm-style", ttm_style) -$XONSH_COLOR_STYLE = "stata-dark" +$XONSH_COLOR_STYLE = "native"