https://github.com/zenilist/ysh
A lightweight command-line shell
https://github.com/zenilist/ysh
shell
Last synced: about 2 months ago
JSON representation
A lightweight command-line shell
- Host: GitHub
- URL: https://github.com/zenilist/ysh
- Owner: zenilist
- License: mit
- Created: 2024-06-09T22:49:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-16T21:14:03.000Z (about 2 years ago)
- Last Synced: 2026-01-13T15:53:53.840Z (6 months ago)
- Topics: shell
- Language: Python
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ysh
ysh is a basic shell implementation written in Python that allows users to execute Unix commands. It also features command history functionality, enabling users to navigate through previously executed commands using the up/down arrow keys.
## Features
- Execute Unix commands directly within the shell.
- Command history: Navigate through previously executed commands using up/down arrow keys.
- Command history is persistent: All executed commands are saved in `~/.ysh_history`.
- Tab completion functionality.
- Aliases can be saved in the config '~/.yashrc' file. eg: ```alias ll = 'ls -l'```
- Syntax highlighting (currently only highlights known commands and aliases)
=======
## Installation
You can install ysh using pip
pip install ysh
## Usage
Simply run `tsh` to start the shell. You can then type Unix commands directly into the shell prompt and press Enter to execute them.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.