From f180456adc30c4bde6c6ba78dbe0f2ddf051d6b9 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 16 Feb 2020 01:50:47 -0500 Subject: [PATCH] ipython: show current version on startup --- .ipython/profile_default/ipython_config.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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]) -- 2.39.5