Skip to content

CFrancis03/Thesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

thesh — A Simple Custom Shell

Welcome to thesh, a lightweight custom shell written in C. This project is a minimalist command-line interpreter designed for educational purposes. It demonstrates how to build basic shell functionality, including built-in commands, user input parsing, and system command execution.

Features

  • Built-in commands:
    • cd – Change the current working directory
    • help – Display information about the shell
    • exit – Exit the shell
    • echo – Print arguments to the terminal
  • Executes external system commands (e.g., ls, pwd, etc.)
  • Basic error handling
  • Clean and readable codebase

Getting Started

Prerequisites

  • GCC or any C compiler
  • Unix-like environment (Linux, macOS, or WSL)

Compilation

To compile the shell:

gcc -o thesh main.c builtins.c -Wall

About

Thesh is a basic Unix shell written in c

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors