From 29f47c699da281c6be3e23d40838e9d031b82d10 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 13 Jun 2018 11:52:15 +1000 Subject: [PATCH] docs: update --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 77c487e..077decc 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ A collection of pure `bash` alternatives to external processes. -### Getting the terminal size (*in a script*). +## Getting the terminal size (*in a script*). This is handy when writing scripts in pure bash and `stty`/`tput` can’t be called. @@ -30,7 +30,7 @@ get_term_size() { ``` -### Convert a hex color to RGB +## Convert a hex color to RGB ```sh hex_to_rgb() { @@ -44,7 +44,7 @@ hex_to_rgb() { ``` -### Convert an RGB color to hex. +## Convert an RGB color to hex. ```sh rgb_to_hex() { @@ -54,7 +54,7 @@ rgb_to_hex() { ``` -### `printf` as a `date` replacement. +## `printf` as a `date` replacement. Bash’s `printf` has a built-in method of getting the date which we can use in place of the `date` command in a lot of cases. @@ -70,7 +70,7 @@ date() { ``` -### `dirname` +## `dirname` Extract the directory from a file path.