scsh

Version, currently 0.1.1-BETA2 versions

github.com/RobertFlexx/CSH

Fork of my project "RSH", (scsh) Simple Crystal SHell, compiled srsh :)

2 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  scsh:
    github: RobertFlexx/CSH
    version: ~> 0.1.1-BETA

Then run:

shards install

shard.yml

Crystal
>= 1.14.0
License
MIT
Author
RobertFlexx
Target
  • scsh from src/scsh.cr

Dependencies

Runtime Dependencies

  • readline*github: crystal-lang/crystal-readline

README

scsh

scsh is a tiny experimental shell written in Crystal. It is not the Ruby-based srsh — this is its own thing.

This is version 0.1.1-BETA. It’s early, it’s rough, and it will probably change a lot.

The code is written by RobertFlexx, with some comment / doc help from ChatGPT.

Requirements

  • Crystal compiler installed (1.x recommended)
  • A POSIX-like terminal (Linux, *BSD, macOS, etc.)

Installation

Clone the repository

git clone https://github.com/RobertFlexx/scsh
cd scsh

Build (recommended)

crystal build src/scsh.cr -o scsh --release

Or run directly (dev/testing)

crystal run scsh.cr

Usage

From inside the repo (or wherever you built the binary):

./scsh

Inside scsh you can:

  • Run normal commands (ls, cat, grep, etc.)

  • Use builtins like:

    • help – show builtin commands
    • systemfetch – simple system info
    • hist / clearhist – view/clear shell history
    • alias / unalias – manage aliases
    • cd, pwd, jobs, exit / quit

Optional: Add scsh to your PATH

After building:

sudo ln -s "$(pwd)/scsh" /usr/local/bin/scsh

Now you can simply run:

scsh

from anywhere.

Contributing

Suggestions, issues, and PRs are welcome. If something feels off, open an issue and yell at the shell, not at yourself :P