Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nelsongillo/shellson
simple shell implementation in C
https://github.com/nelsongillo/shellson
c shell unix
Last synced: 4 days ago
JSON representation
simple shell implementation in C
- Host: GitHub
- URL: https://github.com/nelsongillo/shellson
- Owner: nelsongillo
- Created: 2019-02-25T09:09:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-11T18:12:50.000Z (over 5 years ago)
- Last Synced: 2024-11-20T16:50:27.479Z (about 2 months ago)
- Topics: c, shell, unix
- Language: C
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shellson
This is/will be a simple implementation of an Unix-Shell written in C.\
Only capable of executing single commands.\
Just doing it for the fun and the experience.
## Features
* Command execution
* Options for prompt#### Prompt
A config file called `.shellsonrc` will be created in your home directiory (`/home/username/`).\
There you can modify the `PROMPT` variable, default will be this:
```
PROMPT = "%u@%h$"
```
* `%u` will be replaced with your username
* `%h` will be replaced with the host name of your maschine
* `%%` will be your normal percent sign## Test it - Use at own risk
```
git clone https://github.com/einzigartigername/shellson
cd shellson/
make
```
You will get two warnigs about unused parameters `argc` and `argv` in `main`, just ignore them, they do not matter.To start simply execute: `path/to/shellson`\
or if you have installed it:`shellson`.
### Install
if you are crazy and plan to use it frequenttly, you can install it via
```
make install
```### Uninstall
```
make uninstall
```