Skip to content

Chirag-newdev/C-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

CzShell (C-Z Shell)

A custom, lightweight Unix-like shell implemented in C. CzShell features built-in command handling, relative path tracking, and a clean ANSI-powered interface.

Features

  • Built-in Commands: cd, ls, pwd, echo, cat, touch, clear, and exit.
  • Smart Pathing: Automatically calculates and displays relative paths from the starting directory.
  • Visual Feedback: Color-coded prompts (Green for success, Red for failure).
  • Graceful Exit: A countdown timer with ANSI escape sequences before the shell closes.
  • Dynamic Memory: Handles long input strings and argument lists via realloc.

Installation & Compilation

Use gcc to compile the shell:

gcc -o czshell main.c
./czshell

About

Making a shell in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages