-
Notifications
You must be signed in to change notification settings - Fork 57
/
.xonshrc
36 lines (30 loc) · 1.2 KB
/
.xonshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
## adjust some paths
$PROMPT = "{env_name:{} }{INTENSE_PURPLE}{user}{NO_COLOR}@{INTENSE_YELLOW}{hostname}{BOLD_BLUE} {cwd}{branch_color}{curr_branch: {}}{NO_COLOR} {BOLD_BLUE}\n{prompt_end}{NO_COLOR} "
# Set the home directory for your projects
$PROJECT_DIRS = ['~/src']
# add local bin dir to path
$PATH.append($HOME + '/bin')
$PATH.append($HOME + '.local/bin')
#$LD_LIBRARY_PATH = ['/home/scopatz/.local/lib', '/home/scopatz/miniconda3/lib', '']
#
## alias to quit AwesomeWM from the terminal
#def _quit_awesome(args, stdin=None):
# lines = $(ps ux | grep "gnome-session --session=awesome").splitlines()
# pids = [l.split()[1] for l in lines]
# for pid in pids:
# kill @(pid)
#
#aliases['qa'] = _quit_awesome
#
## some customization options, see https://xon.sh/envvars.html for details
#$MULTILINE_PROMPT = '`·.,¸,.·*¯`·.,¸,.·*¯'
#$XONSH_SHOW_TRACEBACK = True
#$XONSH_STORE_STDOUT = True
$XONSH_HISTORY_MATCH_ANYWHERE = True
$COMPLETIONS_CONFIRM = True
$XONSH_AUTOPAIR = True
xontrib load autojump autoxsh coreutils jedi mpl vox vox_tabcomplete avox powerline
#@events.on_chdir
#def add_to_file(olddir, newdir, **kw):
# with open(g`~/.dirhist`[0], 'a') as dh:
# print(newdir, file=dh)