A lightweight shell implementation written in TypeScript that supports basic Unix-like commands and file operations.
- Bun runtime environment
- Node.js development environment
- Basic shell commands (
cd,pwd,ls, etc.) - File operations (
touch,rm,cp,mkdir,rmdir) - Input/Output redirection (
>,>>,1>,1>>,2>,2>>) - Command history
- Support for quoted arguments (both single and double quotes)
- Path resolution for external commands
echo- Display messages or file contentstype- Display information about command typepwd- Print working directorycd- Change directoryls- List directory contentscat- Concatenate and display file contentstouch- Create empty filesrm- Remove filescp- Copy filesmkdir- Create directoriesrmdir- Remove directorieshistory- Show command historyexit- Exit the shell
- Clone the repository:
git clone https://github.com/your-username/your-shell-repo.git
- Install dependencies:
bun install
- Run the shell:
bun run dev