From 82cdd6471955a01a1fa12a25293af7e38eb95bcc Mon Sep 17 00:00:00 2001
From: Gerhard Gonter <ggonter@gmail.com>
Date: Fri, 8 Nov 2019 18:13:03 +0100
Subject: [PATCH] added config for interactiv python

---
 .login    | 2 ++
 .pythonrc | 9 +++++++++
 2 files changed, 11 insertions(+)
 create mode 100644 .pythonrc

diff --git a/.login b/.login
index 2754442..95ac61e 100644
--- a/.login
+++ b/.login
@@ -13,6 +13,8 @@ setenv EDITOR `which vi`
 setenv LC_ALL en_US.UTF-8
 setenv LESSCHARSET utf-8
 
+setenv PYTHONSTARTUP ~/.pythonrc
+
 if (-x ~/.login.local) then
   source ~/.login.local
 endif
diff --git a/.pythonrc b/.pythonrc
new file mode 100644
index 0000000..7259d67
--- /dev/null
+++ b/.pythonrc
@@ -0,0 +1,9 @@
+# ~/.pythonrc
+# enable syntax completion
+try:
+    import readline
+except ImportError:
+    print("Module readline not available.")
+else:
+    import rlcompleter
+    readline.parse_and_bind("tab: complete")
-- 
GitLab