📜  ngxcountup - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:33:07.386000             🧑  作者: Mango

ngxcountup - Shell-Bash

Introduction

ngxcountup is a simple and lightweight shell script tool that allows developers to generate countdowns and countups in the terminal.

It can help you keep track of time remaining for completing a task, the duration of an event or the time elapsed since a specific moment.

Features
  • Simple and easy to use.
  • Can count up or down.
  • Supports different formats including hh:mm:ss and mm:ss.
  • Customizable labels for the start and end time.
  • Can be used anywhere in the terminal.
Installation

ngxcountup can be installed and used on any Unix-like system. To install it, simply run the following command in your terminal:

curl -s https://raw.githubusercontent.com/nashory/ngxcountup/master/ngxcountup | sudo tee /usr/local/bin/ngxcountup > /dev/null && sudo chmod +x /usr/local/bin/ngxcountup

This will download the script and install it in your system's /usr/local/bin directory.

Usage

ngxcountup is very easy to use. To start a countdown for 10 minutes, simply run the following command in your terminal:

ngxcountup -t 600

This will start a countdown for 10 minutes, which will be displayed in the format mm:ss.

To start a countup from 0 to 600 seconds, use the following command:

ngxcountup -u -t 600

The -u flag will start the countup instead of the countdown.

You can also customize the labels for the start and end time using the -s and -e flags:

ngxcountup -t 600 -s "Start" -e "End"

This will display the countdown with the labels Start and End instead of START and END.

Conclusion

ngxcountup is a simple but useful tool that can help developers keep track of time in the terminal. It's easy to install and use, and it's highly customizable. If you're looking for a way to keep track of time while working on the command line, ngxcountup is definitely worth checking out.

Note: The image below shows an example of ngxcountup in action.

ngxcountup example