diff options
-rwxr-xr-x | bollux | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bollux b/bollux index 10a0c65..1378961 100755 --- a/bollux +++ b/bollux | |||
@@ -36,6 +36,12 @@ die() { # die EXIT_CODE MESSAGE | |||
36 | exit "$ec" | 36 | exit "$ec" |
37 | } | 37 | } |
38 | 38 | ||
39 | # builtin replacement for `sleep` | ||
40 | # https://github.com/dylanaraps/pure-bash-bible#use-read-as-an-alternative-to-the-sleep-command | ||
41 | sleep() { # sleep SECONDS | ||
42 | read -rt "$1" <> <(:) || : | ||
43 | } | ||
44 | |||
39 | # https://github.com/dylanaraps/pure-bash-bible/ | 45 | # https://github.com/dylanaraps/pure-bash-bible/ |
40 | trim_string() { # trim_string STRING | 46 | trim_string() { # trim_string STRING |
41 | : "${1#"${1%%[![:space:]]*}"}" | 47 | : "${1#"${1%%[![:space:]]*}"}" |