Travis Build Status {focus_keyword} mitnk/cicada 68747470733a2f2f6170692e7472617669732d63692e6f72672f6d69746e6b2f6369636164612e7376673f6272616e63683d6d6173746572
Latest Version {focus_keyword} mitnk/cicada 68747470733a2f2f696d672e736869656c64732e696f2f6372617465732f762f6369636164612e737667

Cicada is a simple Unix shell written in Rust.

Documents

  • Install cicada
  • Environment Variables
  • Cicada Builtins
  • Completion
  • RC File
  • History
  • Job Control
  • Customize Prompt
  • Scripting

Try out cicada with Docker

$ docker pull mitnk/cicada
$ docker run --rm -it mitnk/cicada
(in-cicada) $ cinfo

Features

Run programs and pipelines

$ ls | head -n3
Desktop
Documents
Downloads

$ echo foo,bar | awk -F "," '{print $2, $1}'
bar foo

With redirections

$ ls file-not-exist 2>&1 | wc > e.txt
$ cat e.txt
       1       7      46

Command substitution

$ ls -l `which sh`
-r-xr-xr-x  1 root  wheel  618512 Oct 26  2017 /bin/sh

$ echo "Time is $(date)."
Time is Sun Sep  2 12:04:13 CST 2018.

Run multiple commands (with logical)

$ echo foo; echo bar
foo
bar

$ echo foo && echo bar
foo
bar

$ echo foo || echo bar
foo

Math arithmetic directly in the shell!

$ 1 + 2 * 3 - 4
3
$ (1 + 2) * (3 - 4) / 8.0
-0.375
$ 2 ^ 31
2147483648

Cicada is also a library (BETA)

Read APIs here: https://docs.rs/cicada/.

FAQs

  • Why another shell?
  • Compare to bash?
  • Is cicada POSIX-compatible?
  • Will my bash/zsh scripts continue work in cicada?
  • Windows support?

Read More

LEAVE A REPLY

Please enter your comment!
Please enter your name here