There's no built-in way to do so. However, you can use DreamPie's
features to have it.
Create a file called init.py somewhere on your PYTHONPATH, with this:
==================
__all__ = ['sh', 'cd']
import os
import subprocess
def expects_str(f):
f.__expects_str__ = True
return f
@expects_str
def sh(s):
return subprocess.call(s, shell=True)
@expects_str
def cd(path):
r = os.chdir(os.path.expanduser(path))
if r != 0:
return r
================
Now, in the preferences dialog, in the shell tab, write this command
to be executed on startup:
from init import *
Now, to run shell commands, type "sh <your command>", for example, "sh
ls" (you'll get 'sh("ls")' written), and press ctrl-enter. To change
directories, type "cd dir".
I hope to add a basic "init file" like this to the next version of
DreamPie, so it will be easier to set up this behavior.
I hope this helps,
Noam
As Hek suggested, I'll be great to see iPython like shell integration
in DreamPie. It's a helpful and frequently used feature.
Regards,
Amin
I think that type "sh command"(ctrl-enter) is nearly as easy as typing
"!command" (enter). Don't you think so?
Noam