Added Max OS X build version
This commit is contained in:
parent
84f6993987
commit
a0a7904fcc
3 changed files with 38 additions and 2 deletions
26
1.1.md
Normal file
26
1.1.md
Normal file
|
@ -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
|
||||||
|
|
||||||
|
```
|
|
@ -175,6 +175,7 @@ alias fetch2="fetch \
|
||||||
usage: ${0##*/} --option "value"
|
usage: ${0##*/} --option "value"
|
||||||
|
|
||||||
Info:
|
Info:
|
||||||
|
--osx_buildversion Hide/Show Mac OS X build version.
|
||||||
--speed_type Change the type of cpu speed to display.
|
--speed_type Change the type of cpu speed to display.
|
||||||
Possible values: current, min, max, bios,
|
Possible values: current, min, max, bios,
|
||||||
scaling_current, scaling_min, scaling_max
|
scaling_current, scaling_min, scaling_max
|
||||||
|
|
13
fetch
13
fetch
|
@ -86,7 +86,12 @@ printinfo () {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Window Manager
|
# Distro
|
||||||
|
|
||||||
|
|
||||||
|
# Mac OS X hide/show build version
|
||||||
|
# --osx_buildversion on/off
|
||||||
|
osx_buildversion="on"
|
||||||
|
|
||||||
|
|
||||||
# CPU
|
# CPU
|
||||||
|
@ -357,8 +362,10 @@ case "$os" in
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
# distro="Mac OS X $(sw_vers -productVersion -buildVersion)"
|
|
||||||
distro="Mac OS X $(sw_vers -productVersion)"
|
distro="Mac OS X $(sw_vers -productVersion)"
|
||||||
|
|
||||||
|
[ "$osx_buildversion" == "on" ] && \
|
||||||
|
distro+=" $(sw_vers -buildVersion)"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"OpenBSD")
|
"OpenBSD")
|
||||||
|
@ -1481,6 +1488,7 @@ usage () { cat << EOF
|
||||||
usage: ${0##*/} --option "value"
|
usage: ${0##*/} --option "value"
|
||||||
|
|
||||||
Info:
|
Info:
|
||||||
|
--osx_buildversion Hide/Show Mac OS X build version.
|
||||||
--speed_type Change the type of cpu speed to display.
|
--speed_type Change the type of cpu speed to display.
|
||||||
Possible values: current, min, max, bios,
|
Possible values: current, min, max, bios,
|
||||||
scaling_current, scaling_min, scaling_max
|
scaling_current, scaling_min, scaling_max
|
||||||
|
@ -1573,6 +1581,7 @@ exit 1
|
||||||
while [ "$1" ]; do
|
while [ "$1" ]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
# Info
|
# Info
|
||||||
|
--osx_buildversion) osx_buildversion="$2" ;;
|
||||||
--speed_type) speed_type="$2" ;;
|
--speed_type) speed_type="$2" ;;
|
||||||
--uptime_shorthand) uptime_shorthand="$2" ;;
|
--uptime_shorthand) uptime_shorthand="$2" ;;
|
||||||
--gpu_shorthand) gpu_shorthand="$2" ;;
|
--gpu_shorthand) gpu_shorthand="$2" ;;
|
||||||
|
|
Loading…
Reference in a new issue