Skip to content

Instantly share code, notes, and snippets.

@tombulled
Last active December 24, 2020 20:37
Show Gist options
  • Save tombulled/eb992eb8e326d10193db6a96c1e8f7ea to your computer and use it in GitHub Desktop.
Save tombulled/eb992eb8e326d10193db6a96c1e8f7ea to your computer and use it in GitHub Desktop.
Fish alias for python3 with colour support from rich
alias py='python3 -i -c "import sys, rich, rich.pretty, rich.traceback; rich.pretty.install(); rich.traceback.install(); rich.print(\'[b]Python[/b]\', f\'{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}\')"' && funcsave py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment