Skip to content

A shell in haskell (still in progress but probably usable, though it prints some debug info right now)

License

Notifications You must be signed in to change notification settings

Geometer1729/hsh

Repository files navigation

hsh

A shell written in haskell, with the hope of capturing some of the succinctness and expressiveness of haskell.

Has

  • Basic commands with arguments
  • Pipeing with >>=
  • Sequencing with >>
  • Background with &
  • logic
    • if then else
    • && and ||
  • Built-ins
    • cd
    • print var
    • lineMap
    • True
    • False
  • let
    • supports lambda functions and function definitions
  • execute by absolute filePath or path from current working directory
    • Ctrl-c Ctrl-d support
    • file globing
  • " and \ support to allow literal strings arguments with spaces etc
    • backticks allow evaluating commands inside commands
  • store output as var with <-, ie x <- ls
  • Pipe stdout stderr seperately or together
    • infix function support

Needs

  • tab complete local execs
    • fancy junk so cd .. works with simlinks
  • Call to haskell
  • Configurable Prompt ideally parsed from Env variable
  • better error messages

Installation

git clone https://github.com/Geometer1729/hsh.git

cd hsh

make

if make doesn't work let me know

Bugs

  • Probably a bunch I don't know about, if you find one please report it

About

A shell in haskell (still in progress but probably usable, though it prints some debug info right now)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published