Explorar o código

Add completion with Python interpreter.

Emmanuel Bouthenot %!s(int64=16) %!d(string=hai) anos
pai
achega
30a831a6bf
Modificáronse 2 ficheiros con 10 adicións e 0 borrados
  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