diff --git a/1.1.md b/1.1.md new file mode 100644 index 00000000..015f80d0 --- /dev/null +++ b/1.1.md @@ -0,0 +1,26 @@ +# Fetch 1.1 changelog + +- If `w3m` or `imagemagick` aren't installed we gracefully fallback to no image mode. +- Fix padding escape codes on BSD systems. +- Swap escape codes from `\e` to `\033` for consistency. + +### Info + +**Window Manager:** + +- Added support for `$XINITRC` + +**GTK:** + +- Fix incorrect GTK3 theme being displayed + + +### Image + +- Rename `--shuffledir` and `$shuffledir` to `shuffle_dir`. +- Added support for ascii art inside of text files. + +```sh +fetch --ascii "path/to/ascii" --ascii_color 2 + +``` diff --git a/README.md b/README.md index 149d35cc..3270c082 100644 --- a/README.md +++ b/README.md @@ -175,6 +175,7 @@ alias fetch2="fetch \ usage: ${0##*/} --option "value" Info: + --osx_buildversion Hide/Show Mac OS X build version. --speed_type Change the type of cpu speed to display. Possible values: current, min, max, bios, scaling_current, scaling_min, scaling_max diff --git a/fetch b/fetch index 94ad3e89..93eeee2a 100755 --- a/fetch +++ b/fetch @@ -86,7 +86,12 @@ printinfo () { } -# Window Manager +# Distro + + +# Mac OS X hide/show build version +# --osx_buildversion on/off +osx_buildversion="on" # CPU @@ -357,8 +362,10 @@ case "$os" in ;; "Mac OS X") - # distro="Mac OS X $(sw_vers -productVersion -buildVersion)" distro="Mac OS X $(sw_vers -productVersion)" + + [ "$osx_buildversion" == "on" ] && \ + distro+=" $(sw_vers -buildVersion)" ;; "OpenBSD") @@ -1481,6 +1488,7 @@ usage () { cat << EOF usage: ${0##*/} --option "value" Info: + --osx_buildversion Hide/Show Mac OS X build version. --speed_type Change the type of cpu speed to display. Possible values: current, min, max, bios, scaling_current, scaling_min, scaling_max @@ -1573,6 +1581,7 @@ exit 1 while [ "$1" ]; do case $1 in # Info + --osx_buildversion) osx_buildversion="$2" ;; --speed_type) speed_type="$2" ;; --uptime_shorthand) uptime_shorthand="$2" ;; --gpu_shorthand) gpu_shorthand="$2" ;;