dylan

Results 32 issues of dylan

- [x] Dynamic variable naming. - [x] Internal variables. - [x] Turn the non-functions into functions. - This is so tests can be written. - It also shows a working...

help wanted
good first issue

This is very likely **not** perfect but it seems to pass any RGB color I throw at it. ```sh # rgb2hsl - usage: rgb2hsl r g b rgb_to_hsl() { local...

discussion

I've started work on an alternative version of the "pure bash bible" for pure POSIX `sh` snippets. https://github.com/dylanaraps/pure-sh-bible

enhancement

- [ ] "string lists" - `list="1 2 3 4"` - How to use them safely. - [ ] "argument lists" - [x] Using `read`. - [x] Trimming quotes from...

https://github.com/dylanaraps/pure-bash-bible - A collection of pure bash alternatives to external processes. Cheers :+1:

This may or may not be merged. Was fun to write either way. :)

```sh #!/usr/bin/env bash # # opener [[ -z $1 || ! -e $1 ]] && exit 1 mime_type="$(file -biL "$1")" case "$mime_type" in text/*|*/xml) "${VISUAL:-${EDITOR:-vi}}" "$1" ;; image/*) qiv -tBl...

discussion

TODO: - [ ] Proper conversion from bytes to human readable. - [ ] Cleanup.

enhancement