Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
share|improve this question
    
Try this as command: xterm -e python –  Herman Torjussen 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

1 Answer 1

up vote 2 down vote accepted
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

share|improve this answer
    
Perfect, thanks you. –  Vernon Feb 17 '12 at 6:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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