Browse Source

Add completion with Python interpreter.

Emmanuel Bouthenot 15 years ago
parent
commit
30a831a6bf
2 changed files with 10 additions and 0 deletions
  1. 7 0
      .pythonrc
  2. 3 0
      .zsh.d/config.d/devel.zsh

+ 7 - 0
.pythonrc

@@ -0,0 +1,7 @@
+try:
+    import readline
+except ImportError:
+    print "Module readline not available."
+else:
+    import rlcompleter
+    readline.parse_and_bind("tab: complete")

+ 3 - 0
.zsh.d/config.d/devel.zsh

@@ -8,3 +8,6 @@ compdef _cvs weecvs
 # kpkgmanager / kio-apt stuff
 alias kpmcvs="cvs -z3 -d:ext:kolterox@kpkgmanager.cvs.sourceforge.net:/cvsroot/kpkgmanager"
 compdef _cvs kpmcvs
+
+# Python completion
+export PYTHONSTARTUP=~/.pythonrc