From b5e62a33cb6fc718f7a31bf98cc83ff949a77d83 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Sun, 28 Apr 2024 15:39:56 +0900 Subject: [PATCH] docs(plugins/progress): describe usage of "delay" --- plugins/progress/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/progress/README.md b/plugins/progress/README.md index 4cb5121..5d4e226 100644 --- a/plugins/progress/README.md +++ b/plugins/progress/README.md @@ -30,6 +30,13 @@ Bash. The function handles printing of the progress bar. progress 25 "Processing data..." # Displays a 25% progress bar with the status "Processing data..." ``` +To change the delay of the progress bar, please overwrite the `delay` function. + +```bash +# Example: change the delay to 0.1 sec +function delay { sleep 0.1; } +``` + _⚠️ if you want to add only the plugin and not Oh My Bash, you can copy the file `progress.plugin.sh` to a place you like and source it in `~/.basrhc` (for interactive uses) or in a shell script (for a standalone shell program). You