2

In my .ratpoisonrc file I'm failing to write a key-binding to open a terminal running python. I'm running a minimal Debian setup on which I basically just run emacs. Sometimes I want to just get a python shell and I'm not sure how to set up the key binding to get that right.

bind p exec ???? python
  • Try this as command: xterm -e python – user13742 Feb 16 '12 at 12:09
  • I've tried xterm and it doesn't do it. It was what I thought it should be, but it's not working. It gives me /bin/sh -c "xterm -e python" finnished (127) and nothing else. – Vernon Feb 16 '12 at 12:14
2
bind p exec x-terminal-emulator --title python -e /usr/bin/python

(but I'd highly recommend using ipython as an interactive python)

If x-terminal-emulator isn't using your current favorite terminal emulator (xterm vs rxvt vg gnome-terminal, etc) then run update-alternatives --config x-terminal-emulator

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.