https://github.com/rmpr/psh
Psssssh
https://github.com/rmpr/psh
Last synced: about 2 months ago
JSON representation
Psssssh
- Host: GitHub
- URL: https://github.com/rmpr/psh
- Owner: RMPR
- Created: 2020-12-12T18:35:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-18T18:26:17.000Z (over 5 years ago)
- Last Synced: 2025-03-12T13:24:32.948Z (over 1 year ago)
- Language: C
- Size: 188 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# psh

This is a simple shell made for learning purpose.
# Usage
```
psh
```
Opens a new prompt with a pattern defined in psh.cfg (if the file doesn't exist it will be created with the default pattern `>`). Think of it as a cheap equivalent of `$PS1`.
Now the Shell is working like any other shell, infinite loop waiting for user input starting execution after the user presses `\n`.
It doesn't support piping and redirecting.
# Shell Built-ins
Essentially `cd`, `exit` and `help`
# Goodies
I don't know why but I feel like it. After each command the Shell will print ~~`pss...sh` with the number of `s` corresponding to the number of characters read. That's it, the
length of the command is proportional to the prompt size.~~ the current working directory followed by the content of psh.cfg