1
0
Fork 0

Add .xonshrc

This commit is contained in:
Jeremy Kaplan 2016-06-08 17:12:26 -04:00
commit bb91845ba6
2 changed files with 35 additions and 0 deletions

View file

@ -23,3 +23,4 @@
~/.config/sxhkd: sxhkd/
~/.config/panel: panel/
~/.config/nvim: neovim/
~/.xonshrc: xonsh/.xonshrc

34
xonsh/.xonshrc Normal file
View file

@ -0,0 +1,34 @@
$PATH.append($HOME + '/bin')
$EDITOR = 'emacs'
$VISUAL = $EDITOR
$XDG_CONFIG_HOME = $HOME + '/.config'
if any(v in __xonsh_env__ for v in ['SSH_TTY', 'SSH_CLIENT', 'SSH_CONNECTION']):
$LOCAL_SESSION = True
else:
$LOCAL_SESSION = False
$XONSH_COLOR_STYLE = 'monokai'
blue = '#5fd7ff'
orange = '#d75f00'
purple = '#af5fff'
red = '#ff0000'
green = '#87ff00'
gray = '#626262'
def colorize(color, string):
return '{{{}}}{}'.format(color, string)
lbrkt = colorize(gray, '[')
rbrkt = colorize(gray, ']')
colon = colorize(gray, ':')
user = colorize(purple, '{user}')
host = colorize(blue, '{hostname}')
dir = colorize(green, '{cwd}')
branch = colorize(orange, '{curr_branch}')
$PROMPT = "{prompt_end} "
$RIGHT_PROMPT = lbrkt + user + colon + host + colon + dir + branch + rbrkt