はじめに

カウントダウンしたいですよね?
調べてみたところ、カウントダウンできるコマンドがあるようなので、それを使ってみる。

環境

1
2
MacOS Sonoma 14.0
Homebrew 4.1.16

countdownのインストール

1
$ brew install countdown
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
$ brew install countdown
==> Downloading https://formulae.brew.sh/api/formula.jws.json
################################################################################################################################ 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
################################################################################################################################ 100.0%
Warning: Treating countdown as a formula. For the cask, use homebrew/cask/countdown
==> Downloading https://ghcr.io/v2/homebrew/core/countdown/manifests/1.5.0
################################################################################################################################ 100.0%
==> Fetching countdown
==> Downloading https://ghcr.io/v2/homebrew/core/countdown/blobs/sha256:ddf45211af332196f188371a462c0af25b115d64e08d568c20370e5be9992b2
################################################################################################################################ 100.0%
==> Pouring countdown--1.5.0.sonoma.bottle.tar.gz
🍺  /usr/local/Cellar/countdown/1.5.0: 5 files, 2.0MB
==> Running `brew cleanup countdown`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

使ってみる

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 countdown [-up] [-say] <duration>

 Usage
  countdown 25s
  countdown 14:15
  countdown 02:15PM

 Flags
  -say
        announce the time left
  -up
        count up from zero

$ countdown --help
Usage of countdown:
  -say
        announce the time left
  -up
        count up from zero

ヘルプはこんな感じ、至ってシンプル

1
$ countdown 10s

実行結果は下記↓

おわりに

時間を測りたいけど手元にスマホがないってときに使えそう。