We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xontext
I found that xc from xontrib-rc-awesome is very useful alias:
xc
from shutil import which as _which # Alias to get Xonsh Context. # Read more: https://github.com/anki-code/xonsh-cheatsheet/blob/main/README.md#install-xonsh-with-package-and-environment-management-system @aliases.register("xc") def _alias_xc(): """Get xonsh context.""" print('xpython:', imp.sys.executable, '#', $(@(imp.sys.executable) -V).strip()) print('xpip:', $(which xpip).strip()) # xpip - xonsh's builtin to install packages in current session xonsh environment. print('') print('xonsh:', $(which xonsh)) print('python:', $(which python), '#', $(python -V).strip()) print('pip:', $(which pip)) if _which('pytest'): print('pytest:', $(which pytest)) print('') envs = ['CONDA_DEFAULT_ENV'] for ev in envs: if (val := __xonsh__.env.get(ev)): print(f'{ev}:', val)
It will be grate to have xontext alias:
xontext # [Current xonsh session] # xpython: /Users/pc/.local/xonsh-env/bin/python # Python 3.12.2 # xpip: /Users/pc/.local/xonsh-env/bin/python -m pip # # [Current commands environment] # xonsh: /Users/pc/.local/xonsh-env/xbin/xonsh # https://github.com/anki-code/xonsh-install # python: /opt/homebrew/bin/python # Python 3.11.6 # pip: /opt/homebrew/bin/pip
⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment
+1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I found that
xc
from xontrib-rc-awesome is very useful alias:It will be grate to have
xontext
alias:For community
⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 commentThe text was updated successfully, but these errors were encountered: