diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2018-05-29 16:03:52 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2018-05-29 16:03:52 +0200 |
| commit | 670e0564dab62f5d6e9540162d55b63c907ce8de (patch) | |
| tree | 7de98b227997e9b66171ac6622b939353db98eac /config/fish/functions/timer.fish | |
| parent | bcce6c6c728488fcc97591ea4ee458dfef1d33fd (diff) | |
| download | dotfiles-670e0564dab62f5d6e9540162d55b63c907ce8de.tar.gz dotfiles-670e0564dab62f5d6e9540162d55b63c907ce8de.zip | |
[fish] Add loop option to alert and use alert in timer
Diffstat (limited to 'config/fish/functions/timer.fish')
| -rw-r--r-- | config/fish/functions/timer.fish | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/config/fish/functions/timer.fish b/config/fish/functions/timer.fish index a2f70db..1276a79 100644 --- a/config/fish/functions/timer.fish +++ b/config/fish/functions/timer.fish @@ -1,5 +1,4 @@ function timer - set usage "Usage: timer [-q] <minutes to wait>" if test (count $argv) -lt 1 @@ -28,12 +27,6 @@ function timer echo (string replace -r '0m left' ready! (echo (math $time - $i)m left)) end if not set -q quiet - while true - for i in (seq 1 20) - xkbbell - sleep 1 - end - sleep 1m - end + alert -l end end |
