From: Mike Frysinger Date: Sun, 16 Feb 2020 06:50:47 +0000 (-0500) Subject: ipython: show current version on startup X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f180456adc30c4bde6c6ba78dbe0f2ddf051d6b9;p=home.git ipython: show current version on startup --- diff --git a/.ipython/profile_default/ipython_config.py b/.ipython/profile_default/ipython_config.py index 0a96067..7160b77 100644 --- a/.ipython/profile_default/ipython_config.py +++ b/.ipython/profile_default/ipython_config.py @@ -1,3 +1,9 @@ +"""My customizations to the runtime.""" + +from __future__ import print_function + +import sys + from IPython.terminal.prompts import Prompts, Token @@ -10,3 +16,6 @@ class MyPrompt(Prompts): c.InteractiveShell.prompts_class = MyPrompt + + +print('Python', sys.version.splitlines()[0])