Skip to content

Latest commit

 

History

History
177 lines (124 loc) · 4.7 KB

README.md

File metadata and controls

177 lines (124 loc) · 4.7 KB

Contributors Forks Stargazers Issues MIT License LinkedIn

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. References

About The Project

Screenshot

21sh is a functional BASH-like shell, written in C. Supports process creation along with logical operators, redirection and line edition.

Built With

  • C and standard libraries

Getting Started

Prerequisites

The only dependency required for local compilation is a C compiler (developed with gcc), along with Make.

Installation

  1. Clone the repo
    git clone https://github.com/travmatth/21sh.git
  2. compile
    make

Usage

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)

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Travis Matthews - github

Project Link: https://github.com/travmatth/21sh

References