edouard-lopez / progress-bar.sh Goto Github PK
View Code? Open in Web Editor NEWSimple & sexy progress bar for `bash`, give it a duration and it will do the rest.
License: MIT License
Simple & sexy progress bar for `bash`, give it a duration and it will do the rest.
License: MIT License
hello
i found your progress-bar.sh script.
copy pasted change right/permission and wished to run.
but nothing happen, but also no error
so is the something needed which is not in a default debian 10 installation?
have a nice day
vinc
$COLUMNS is a shell variable but we're working with enviroment so they won't be of much help.
I'm new to the open-source and would like to fix this issue, it's going to be my first bug.
Whatever the value, the progress bar advance, but the percentage stick to 0
progress-bar 5
▇▇▇ | 0%
Hey, when I source the script i get the following error:
-bash: progress-bar.sh: line 24: syntax error near unexpected token `newline'
-bash: progress-bar.sh: line 24: ` already_done() { for ((done=0; done<(elapsed / fit_to_screen) ; done=done+1 )); do printf "▇"; done }'
I'm not sure what this is...
It might be because I'm running bash in WSL
Edit: Yes it has something to do with WSL, runs fine on my ubuntu machine
Hey Edouard
Can I use your progress bar in my vscode bash snippet?
Hey,
Nice work with the progress bar, I was wondering if we could let the progress bar fit to screen size. Right now it is occupying a pre-defined (not sure if shell specific or pre-defined) space, instead of covering up the whole screen (width wise)?
When you use a number like 300 per say, the bar prints each % to a new line rather than stay on the single line as the bar should.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.