Skip to main content

A basic shell interface that can execute Unix commands

Project description

tsh (Basic Shell Implementation)

tsh is a basic shell implementation written in Python that allows users to execute Unix commands. It also features command history functionality, enabling users to navigate through previously executed commands using the up/down arrow keys.

Features

  • Execute Unix commands directly within the shell.
  • Command history: Navigate through previously executed commands using up/down arrow keys.
  • Command history is persistent: All executed commands are saved in ~/.tsh_history.
  • [Future] Tab completion functionality.

Installation

  1. Clone the repository:

    git clone https://github.com/zenilist/tsh.git
    
  2. Install dependencies using pip:

    cd tsh/
    
  3. Install dependencies using pip:

    pip install -r requirements.txt
    
  4. Run the shell:

    ./tsh.py
    

Usage

Simply run ./tsh.py to start the shell. You can then type Unix commands directly into the shell prompt and press Enter to execute them.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ysh-0.0.1-py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page