mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00

* feat: use python's compile for rc.py * docs: add news item * docs: update news item * test: add tests for py-control files * fix: rst news item * docs: update news item * docs: add sample rc.py
23 lines
766 B
Python
23 lines
766 B
Python
from xonsh.built_ins import XSH
|
||
|
||
env = XSH.env
|
||
# adjust some paths
|
||
env["PATH"].append("/home/scopatz/sandbox/bin")
|
||
env["LD_LIBRARY_PATH"] = ["/home/scopatz/.local/lib", "/home/scopatz/miniconda3/lib"]
|
||
|
||
# alias to quit AwesomeWM from the terminal
|
||
def _quit_awesome(args, stdin=None):
|
||
print("awesome python code")
|
||
|
||
|
||
XSH.aliases["qa"] = _quit_awesome
|
||
# setting aliases as list are faster since they don't involve parser.
|
||
XSH.aliases["gc"] = ["git", "commit"]
|
||
|
||
# some customization options, see https://xon.sh/envvars.html for details
|
||
env["MULTILINE_PROMPT"] = "`·.,¸,.·*¯`·.,¸,.·*¯"
|
||
env["XONSH_SHOW_TRACEBACK"] = True
|
||
env["XONSH_STORE_STDOUT"] = True
|
||
env["XONSH_HISTORY_MATCH_ANYWHERE"] = True
|
||
env["COMPLETIONS_CONFIRM"] = True
|
||
env["XONSH_AUTOPAIR"] = True
|