docs: update

This commit is contained in:
Dylan Araps 2018-06-13 11:52:15 +10:00
parent d5b22857ff
commit 29f47c699d
1 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ A collection of pure `bash` alternatives to external processes.
<!-- 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
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.
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.
@ -70,7 +70,7 @@ date() {
```
### `dirname`
## `dirname`
Extract the directory from a file path.