https://github.com/mathieubesson/my-magic-prompt
Creation of a prompt within a prompt allowing certain commands to be executed
https://github.com/mathieubesson/my-magic-prompt
bash cli shell
Last synced: about 1 month ago
JSON representation
Creation of a prompt within a prompt allowing certain commands to be executed
- Host: GitHub
- URL: https://github.com/mathieubesson/my-magic-prompt
- Owner: MathieuBesson
- License: gpl-3.0
- Created: 2024-04-02T17:50:45.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-31T15:49:56.000Z (almost 2 years ago)
- Last Synced: 2025-02-23T01:44:13.075Z (over 1 year ago)
- Topics: bash, cli, shell
- Language: Shell
- Homepage:
- Size: 1.08 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# My Magic Prompt
## Description
My magic prompt is a cli in a terminal that allows you to launch commands that perform certain actions. This project being a student project it is based on precise instructions available here : [Link to Exercise Instructions](./shell-scripting.pdf)
## Prerequisites
### OS
A Linux distribution, WSL, or macOS
### Utilities




## Usage
### Start the Prompt
```bash
make my-magic-prompt
```
- To access the prompt, you need to provide a specific login and password, or create your own.
### Running Commands
```bash
[COMMAND] [ARGUMENTS] [OPTIONS]
```
## Available Commands
- **passw**: Change the password with a confirmation prompt.
- **profil**: Displays all your personal information (First Name, Last Name, Age, Email).
- **ls**: Lists visible and hidden files and directories.
- **cd**: Navigate to a newly created directory or return to the previous one.
- **pwd**: Displays the current directory.
- **hour**: Shows the current time.
- **rm**: Deletes a file.
- **rmd**, **rmdir**: Deletes a directory.
- **httpget**: Downloads the HTML source code of a web page and saves it to a specified file. You will be prompted to provide the file name.
- **smtp**: Sends an email with a specified address, subject, and message body.
- **open**: Opens a file directly in the Vim editor, even if the file doesn't exist.
- **age**: Asks for your age and indicates whether you are a minor or an adult.
- **quit**, **exit**: Exits the prompt.
- **help**: Displays available commands.
- **about**: Description of the program.
- **version**, **vers**, **--v**: Displays the prompt's version.
## License
This project is licensed under the GPL License. See the [LICENSE](./LICENSE) file for more details.