docs: update

This commit is contained in:
Dylan Araps
2018-06-13 11:52:15 +10:00
parent d5b22857ff
commit 29f47c699d

View File

@@ -13,7 +13,7 @@ A collection of pure `bash` alternatives to external processes.
<!-- vim-markdown-toc --> <!-- vim-markdown-toc -->
### 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` cant be This is handy when writing scripts in pure bash and `stty`/`tput` cant be
called. called.
@@ -30,7 +30,7 @@ get_term_size() {
``` ```
### Convert a hex color to RGB ## Convert a hex color to RGB
```sh ```sh
hex_to_rgb() { hex_to_rgb() {
@@ -44,7 +44,7 @@ hex_to_rgb() {
``` ```
### Convert an RGB color to hex. ## Convert an RGB color to hex.
```sh ```sh
rgb_to_hex() { rgb_to_hex() {
@@ -54,7 +54,7 @@ rgb_to_hex() {
``` ```
### `printf` as a `date` replacement. ## `printf` as a `date` replacement.
Bashs `printf` has a built-in method of getting the date which we can use Bashs `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. 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. Extract the directory from a file path.