nfischer / n_shell

A NodeJS REPL with ShellJS loaded by default
https://www.npmjs.com/package/n_shell
MIT License
8 stars 1 forks source link

Add an option to show the shelljs version in the prompt #1

Closed nfischer closed 8 years ago

nfischer commented 8 years ago

Let's add an option to modify the prompt to look like:

shelljs v0.6.0 $

Also, we can have an option to do a custom prompt (like Bash's PS1 variable). One of the options could be version number. So it would mean that the default prompt looks something like --prompt='shelljs $ ' and the version-number prompt like --prompt='shelljs %v $ '