Table of Contents
21sh is a functional BASH-like shell, written in C. Supports process creation along with logical operators, redirection and line edition.
- C and standard libraries
The only dependency required for local compilation is a C compiler (developed with gcc
), along with Make.
- Clone the repo
git clone https://github.com/travmatth/21sh.git
- compile
make
To run the program:
./21sh
Controls:
21sh:
Movement:
Move cursor left: (left key)
Move cursor right: (right key)
Move cursor one word left: Ctrl-(left key)
Move cursor one word right: Ctrl-(right key)
Move up one line: Ctrl-(up key)
Move down one line: Ctrl-(up key)
Move cursor to beginning of command: Home key
Move cursor to end of command: End key
Manipulate Text:
Cut current line: Opt-x
Paste line: Opt-p
Copy line: Opt-c
Backspace: Backspace or delete
Selecting Text:
Select left: Shift-(left key)
Select right: Shift-(right key)
Cancel selection: Esc
Select up one line: Shift-(up key)
Select down one line: Shift-(down key)
Manipulate selection:
Copy selection: Ctrl-c
Paste selection: Ctrl-p
Cut selection: Ctrl-x
History:
Prev history (can only activate when cursor at the end of line): (up key)
Next history (can only activate when cursor at the end of line): (down key)
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Travis Matthews - github
Project Link: https://github.com/travmatth/21sh