diff --git a/1.1.md b/1.1.md index ef0a025d..4315e801 100644 --- a/1.1.md +++ b/1.1.md @@ -40,6 +40,7 @@ - Rename `--shuffledir` and `$shuffledir` to `shuffle_dir`. - Added support for ascii art inside of text files. +- If `--image` and `--ascii` are left empty we fallback to ascii distro mode. ```sh fetch --ascii "path/to/ascii" --ascii_color 2 diff --git a/fetch b/fetch index b53af5e1..f3fb550f 100755 --- a/fetch +++ b/fetch @@ -1862,7 +1862,8 @@ while [ "$1" ]; do --block_width) block_width="$2" ;; # Image - --image) image="$2" ;; + --image) image="$2" + [ -z "$2" ] && image="ascii" ;; --image_backend) image_backend="$2" ;; --shuffle_dir) shuffle_dir="$2" ;; --font_width) font_width="$2" ;; @@ -1876,7 +1877,8 @@ while [ "$1" ]; do --clean) rm -rf "$imgtempdir" || exit ;; # Ascii - --ascii) image="ascii"; ascii="$2" ;; + --ascii) image="ascii"; ascii="$2" + [ -z "$2" ] && ascii="distro" ;; --ascii_color) ascii_color="$2" ;; --ascii_distro) ascii_distro="$2" ;;