Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mitnk/cicada
An old-school bash-like Unix shell written in Rust
https://github.com/mitnk/cicada
cicada linux shell unix
Last synced: 3 months ago
JSON representation
An old-school bash-like Unix shell written in Rust
- Host: GitHub
- URL: https://github.com/mitnk/cicada
- Owner: mitnk
- License: mit
- Created: 2017-03-09T13:59:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-07T05:50:51.000Z (over 1 year ago)
- Last Synced: 2024-04-30T07:31:24.039Z (9 months ago)
- Topics: cicada, linux, shell, unix
- Language: Rust
- Homepage: https://hugo.wang/cicada/
- Size: 773 KB
- Stars: 969
- Watchers: 16
- Forks: 51
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rust - mitnk/cicada - like Unix shell [<img src="https://api.travis-ci.org/mitnk/cicada.svg?branch=master">](https://travis-ci.org/mitnk/cicada) (Applications / System tools)
- awesome-rust - mitnk/cicada - like Unix shell (Applications / System tools)
- awesome-rust-cn - mitnk/cicada
- awesome-pest - cicada - An old-school bash-like Unix shell written in Rust. (Projects)
- awesome-rust-zh - mitnk/cicada - 类 bash 的 Unix shell[<img src="https://api.travis-ci.org/mitnk/cicada.svg?branch=master">](https://travis-ci.org/mitnk/cicada) (应用 / 系统工具)
- awesome-rust - mitnk/cicada - A bash-like Unix shell (Applications / System tools)
- awesome-rust - mitnk/cicada - like Unix shell [<img src="https://api.travis-ci.org/mitnk/cicada.svg?branch=master">](https://travis-ci.org/mitnk/cicada) (应用 Applications / 系统工具 System tools)
- fucking-awesome-rust - mitnk/cicada - A bash-like Unix shell (Applications / System tools)
- fucking-awesome-rust - mitnk/cicada - A bash-like Unix shell (Applications / System tools)
- awesome-rust-cn - mitnk/cicada - like Unix shell [<img src="https://api.travis-ci.org/mitnk/cicada.svg?branch=master">](https://travis-ci.org/mitnk/cicada) (应用 / System tools)
README
# Cicada Unix Shell
[![Latest Version](https://img.shields.io/crates/v/cicada.svg)](https://crates.io/crates/cicada)
Cicada is a simple Unix shell written in Rust.
## Documents
- [Install cicada](https://github.com/mitnk/cicada/blob/master/docs/install.md)
- [Environment Variables](https://github.com/mitnk/cicada/tree/master/docs/envs.md)
- [Cicada Builtins](https://github.com/mitnk/cicada/tree/master/docs/builtins.md)
- [Completion](https://github.com/mitnk/cicada/tree/master/docs/completion.md)
- [RC File](https://github.com/mitnk/cicada/tree/master/docs/rc-file.md)
- [History](https://github.com/mitnk/cicada/tree/master/docs/history.md)
- [Job Control](https://github.com/mitnk/cicada/tree/master/docs/jobc.md)
- [Customize Prompt](https://github.com/mitnk/cicada/tree/master/docs/prompt.md)
- [Scripting](https://github.com/mitnk/cicada/tree/master/docs/scripting.md)## Try out cicada with Docker
```
$ 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/](https://docs.rs/cicada/).