This project is a Rust-based rewrite of a Bash script that provides a simple terminal menu to execute commands stored in .menuitem
files. It allows users to select a command to execute from a dynamically generated menu based on the .menuitem
files present in the project's directory. Additionally, users can add new commands to the menu.
- Dynamically generates a menu from
.menuitem
files in the current directory. - Executes commands selected by the user.
- Allows users to add new commands through a simple interface.
- Rust (latest stable version recommended)
- Clone the repository:
git clone https://github.com/yourusername/bashmenu_rust.git
- Navigate to the project directory:
cd bashmenu_rust
- Build the project:
cargo build --release
- strip the binary (optional):
strip target/release/bashmenu_rust
To run BashMenu Rust, use the following command from the project directory:
cargo run
Follow the on-screen prompts to select a command to execute, add a new command, or quit the menu.
To add a new command, select the "new" option from the menu, then enter the command and a nickname when prompted. The command will be saved as a .menuitem
file in the current directory and will be available in the menu the next time BashMenu Rust is run.
Create a single letter alias to open the menu.
Contributions are welcome! Please feel free to submit pull requests or open issues to suggest improvements or report bugs.
This project is licensed under the MIT License - see the LICENSE file for details.
- Original BashMenu script developers
- Rust community for providing an excellent programming language