scsh

Version, currently 0.1.0-BETA2 versions

github.com/RobertFlexx/CSH

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

2 stars
0 dependents
License: MIT

Nothing has been indexed for 0.1.0-BETA yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

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

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.1.0-BETA. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

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