A Linux shell written in Crystal.
Crysh needs to be built from source for now. To do that, you must install Crystal.
-
Clone this repo:
git clone https://github.com/Sevensidedmarble/crysh.git && cd crysh
-
Install dependencies: run:
shards install
(shards
might be a seperate package in your package manager. Make sure you have it. You could trycrystal deps install
as well.) -
Build:
crystal build src/crysh.cr --release
. -
You can run crysh right from this directory with
./crysh
-
You can now symlink to your bin folder (make sure /usr/local/bin is on your path, or use /usr/bin):
-
In bash/zsh:
sudo ln -sf $(pwd)/crysh /usr/local/bin/crysh
-
In fish:
sudo ln -sf (pwd)/crysh /usr/local/bin/crysh
Follow the instructions above. Crysh can be used like any other unix shell. It does not aim to be 100% POSIX complete, but it should be as POSIX complete as fish when 1.0 is released.
I've collected some very helpful resources about programming shells in the wiki, available here.
- Fork it ( https://github.com/Sevensidedmarble/crysh/fork )
- Open a PR
- Profit