If 'ascii_colors' is empty, colors are disabled in ascii art

This commit is contained in:
Dylan 2016-02-04 12:53:56 +11:00
parent d7d8600f1b
commit d8f9574be9
2 changed files with 2 additions and 2 deletions

2
1.1.md
View File

@ -39,7 +39,7 @@ fetch --ascii "path/to/ascii" --ascii_color 2
\[1\] **[How do I enable screenfetch mode?](http://github.com/dylanaraps/fetch#how-do-i-enable-screenfetch-mode)**<br \>
\[2\] `ascii_colors` takes a range of colors which allows you to color every aspect of<br \>
distro and OS ascii art. For custom art the script will color the entirety of it using<br \>
the first value of `ascii_colors`.
the first value of `ascii_colors`. If `ascii_colors` is left empty, color will be disabled.
### Config file

2
fetch
View File

@ -2153,7 +2153,7 @@ while [ "$1" ]; do
*) ascii_colors+=($arg)
esac
done
ascii_colors+=(7 7 7 7 7)
ascii_colors+=(7 7 7 7 7 7)
;;
--ascii_distro) ascii_distro="$2" ;;