While there's no 'julia function' that does this, you can easily slip into shell mode (as Gnimuc hinted) from within the julia REPL by pressing ;
before typing a command. This transforms your julia promt from julia>
to shell>
.
Then you can issue the following command:
less .julia_history
Since this also contains timestamps and other info, if you just want the commands, you can grep out lines starting with a #
comment:
grep "^#" .julia_history -v | less
This pretty much has the same effect as history
in bash / matlab / etc.
This also has the added advantage that you can then use all the functionality provided by less
(including searching) right from within your terminal.
PS: and after having typed this once you won't have to remember it, because you'll be able to call it easily next time by typing ;grep
and pressing the up-arrow :p (though as far as shell commands / grepping goes, these are fairly straightforward commands)
cat .julia_history
in shell mode.esc
+up arrow
seems like way to go about it as of now.