This is a simple shell implementation in C, designed to provide a command-line interface with various features and built-in commands.
- Command Execution: Execute standard Unix commands.
- Pipelines: Support for command pipelines (e.g.,
ls | grep txt). - Redirection: Input and output redirection (e.g.,
ls > output.txt). - Command History: Maintain a history of executed commands.
- Environment Variables: Use environment variables (e.g.,
echo $PATH). - Backend Commands: Execute backend commands.
- Prompt Execution Time: Displays the execution time of the last command in the prompt.
- Save/Load History: Automatically saves command history to
.ps_historyfile and loads it when the shell starts. - Welcome Message and Help Command: Displays a welcome message when the shell starts and includes a
helpcommand to show available commands and usage information. - Colorful Prompt: Customizable colorful prompt for better visual distinction.
- Wildcard Expansion: Support for
*and?wildcards in file name expansion.
cd: Change the current directorypwd: Print the current working directoryhistory: Display or manipulate the command historyjobs: List active jobsexit: Exit the shellhelp: Display help information about built-in commands