Question about ion


#1

hi,

While watching the Lunduke interview with Jeremy Soller, I got really interested in Redox. At one point he was saying that it should possible to use parts of Redox also on other (posix compatible?) platforms.

So simply tried to use the shell (ion-shell) on mac os x. I’m not sure if this is suppose to to work … I just wanted to report that I cant build it.

In any case, here’s the error:

Compiling ion_lexers v0.1.0 (file:///…/ion/ion/members/lexers)
Compiling regex v1.0.0
Compiling backtrace v0.3.8
Compiling ion_braces v0.1.0 (file://…/ion/ion/members/braces)
Compiling syn v0.11.11
error[E0554]: #![feature] may not be used on the stable release channel
–> members/lexers/src/lib.rs:1:1
|
1 | #![feature(nll)]
| ^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try rustc --explain E0554.
error: Could not compile ion_lexers.
warning: build failed, waiting for other jobs to finish…
error: build failed
make: *** [all] Error 101


#2

#![feature(nll)] is only available on nightly so you’d need to compile with nightly


#3

I’m not sure if this the right way to do it, but here is what I’ve tried:

  • rustup -v install nightly
  • and then: cargo +nightly install --git https://gitlab.redox-os.org/redox-os/ion/
    but it didn’t work:
    Updating git repository https://gitlab.redox-os.org/redox-os/ion/
    error: multiple packages with binaries found: ion-shell, ion-shell-fuzz

#4

To instal ion shell run:
cargo +nightly install --git https://gitlab.redox-os.org/redox-os/ion/ ion-shell

Works for me on Bionic 18.04


#5

I’d like to customize my prompt but I don’t know how to change a color with a function, plus I’d like to know if there is a way to display git status in the prompt?
Is it possible to display the output status of the last command in the prompt?

Sorry for bad english.