Last active
July 12, 2021 20:37
-
-
Save stlehmann/d6fb1cb164c0bdee98dca6a7155847c8 to your computer and use it in GitHub Desktop.
My Xonsh config file for Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set aliases | |
aliases['l'] = ['dir'] | |
aliases['ls'] = ['dir'] | |
aliases['g'] = ['git'] | |
aliases['glog'] = ['git', 'log', '--decorate', '--oneline', '--graph'] | |
aliases['gst'] = ['git', 'status'] | |
aliases['gc'] = ['git', 'commit'] | |
aliases['ga'] = ['git', 'add'] | |
aliases['gau'] = ['git', 'add', '-u'] | |
aliases['gaa'] = ['git', 'add', '-A'] | |
aliases['gp'] = ['git', 'push'] | |
aliases['gpu'] = ['git', 'pull'] | |
aliases['rm'] = ['del'] | |
aliases['p'] = ['pipenv'] | |
aliases['ps'] = ['pipenv', 'shell'] | |
aliases['pr'] = ['pipenv', 'run'] | |
aliases['prp'] = ['pipenv', 'run', 'python'] | |
aliases['cp'] = ['copy'] | |
aliases['mv'] = ['move'] | |
aliases['touch'] = ['copy', '/b'] | |
# conda aliases | |
aliases['c'] = ['conda'] | |
aliases['ca'] = ['conda', 'activate'] | |
aliases['cl'] = ['conda', 'list'] | |
aliases['ce'] = ['conda', 'env'] | |
aliases['cel'] = ['conda', 'env', 'list'] | |
# XONSH WIZARD START | |
$AUTO_PUSHD = '1' | |
$INGOREEOF = '1' | |
$MOUSE_SUPPORT = '1' | |
$UPDATE_COMPLETIONS_ON_KEYPRESS = '0' | |
xontrib load coreutils jedi free_cwd z | |
# XONSH WIZARD END | |
def touch(filename: str) -> None: | |
with open(filename, 'w') as f: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment