Skip to content

Instantly share code, notes, and snippets.

@juancarlospaco
Last active April 6, 2018 19:26
Show Gist options
  • Save juancarlospaco/36b61998c6645dea15d345da5b19d144 to your computer and use it in GitHub Desktop.
Save juancarlospaco/36b61998c6645dea15d345da5b19d144 to your computer and use it in GitHub Desktop.
My xon.sh config.
# Coloured man page support
# using 'less' env vars (format is '\E[<brightness>;<colour>m')
$LESS_TERMCAP_mb = "\033[01;31m" # begin blinking
$LESS_TERMCAP_md = "\033[01;31m" # begin bold
$LESS_TERMCAP_me = "\033[0m" # end mode
$LESS_TERMCAP_so = "\033[01;44;36m" # begin standout-mode (bottom of screen)
$LESS_TERMCAP_se = "\033[0m" # end standout-mode
$LESS_TERMCAP_us = "\033[00;36m" # begin underline
$LESS_TERMCAP_ue = "\033[0m" # end underline
# Theme
$XONSH_COLOR_STYLE = 'monokai'
# $XONSH_COLOR_STYLE='native' # failsafe
# ls command colors
# $LS_COLORS = 'rs=0:di=01;36:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:'
$MULTILINE_PROMPT = '⋆ ✢ ✣ ✤ ✥ ✺ ✻ ✦ ✧ ✩ ✰ ✪ ❄ ❅ ✬ ✭ ✮ ✯ ❂ ✫ ✡ ★ ✱ ✲ ✳ ❇ 🔆 ❋ 💥 ✵ ✶ ✷ ✸ ✹ ✼ ❆ ⭐ 🌟 ✴ 🔯 ✨ ⚝'
$XONSH_SHOW_TRACEBACK = False
$XONSH_STORE_STDOUT = True
# auto 'cd'
$AUTO_CD = True
$CASE_SENSITIVE_COMPLETIONS = False
$DYNAMIC_CWD_ELISION_CHAR = "…"
$INDENT = " 💜 💜"
# autocomplete
$SUGGEST_THRESHOLD = 2
$UPDATE_COMPLETIONS_ON_KEYPRESS = True
import random
$PROMPT_FIELDS['kitten'] = lambda: random.choice((random.choice(('🐱', '😸', '😹', '😺', '😻', '😼', '😽', '😾', '😿', '🙀', '💜', ' ')), " "))
import datetime
$PROMPT_FIELDS['time'] = lambda: datetime.datetime.now(datetime.timezone.utc).replace(microsecond=0).astimezone().isoformat(" ")
$PROMPT = '{env_name:{} }{BOLD_GREEN}{user}@{hostname}{BOLD_BLUE} {cwd}{branch_color} {gitstatus}{NO_COLOR} {BOLD_BLUE}{ret_code_color}{ret_code}{prompt_end}{NO_COLOR} '
$BOTTOM_TOOLBAR = '{time} {kitten}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment