It would be nice if one could switch to the "shell" prompt but leaving it
there after the command ends instead of returning to the "julia" prompt, in
order to type an arbitrary number of short commands, for example using
doulbe ";;" or whatever:
I noticed that while in the "shell" prompt my zsh aliases still work!
Is the idea of the new REPL to be like the ipython REPL?
ismaelvc@toybox ~ % ipython
Python 3.4.0 (default, Mar 17 2014, 22:57:51)
Type "copyright", "credits" or "license" for more information.
IPython 1.2.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: test = 'hello'
In [2]: !echo $test
hello
In [3]: files = !ls
In [4]: files
Out[4]:
['003_overview.pdf',
'Algebra_Lineal.ipynb',
'Apuntes_TESCI',
'ArduinoSketches',
'bash_script.sh',
'Books',
'circular_tree.png',
'Contabilidad_140314.ipynb',
'Devel',
'Downloads',
'Dropbox',
'ejemplos.py',
'example1_graph.png',
'example2_graph.png',
'fizzbuzz.jl',
'hola.py',
'HORARIO_2.png',
'imageDownloader',
'julia',
'julia_hola.jl',
'Junk',
'learn_julia.ipynb',
'mail_dual',
'Music',
'networkx_example.py',
'nothing',
'Pictures',
'Probabilidad_Estadistica.ipynb',
'problem_1.py',
'Proyecto_Euler',
'__pycache__',
'pydot_example_directed.py',
'pydot_example.py',
'pyramid.py',
'python2_test.py',
'python_hola.py',
'python_segfault',
'qt-recordMyDesktop-crash.log',
'Roms',
'sketchbook',
'suma_modulo.py',
'TESCI',
'testing_julia.ipynb',
'test.py',
'Untitled0.ipynb',
'VirtualBox VMs']
In [5]:
Do you really want to exit ([y]/n)?
ismaelvc@toybox ~ % julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" to list help topics
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.3.0-prerelease+2282 (2014-03-31 04:34
UTC)
_/ |\__'_|_|_|\__'_| | Commit 1651a97 (1 day old master)
|__/ | i686-pc-linux-gnu
julia> test = "helo"
"helo"
shell> echo $test
helo
julia> files = ;ls
ERROR: syntax: unexpected ;
Ctrl+Left/Right to move the cursor one word at a time, doesn't work, I
suppose, that functionality comes from readline.
It would be nice to have julia as my default "shell" with custom profiles
and the avility to mix shell commands with the language commands, I have
used ipython as a shell with some succes thanks to goodies like in the
paste above.
Startup is also noticeably faster, keep up the good work! :-)