This commit is contained in:
Dylan 2016-01-18 18:21:57 +11:00
parent 27ee879d25
commit f3bc7145e4
2 changed files with 7 additions and 4 deletions

View file

@ -15,9 +15,9 @@ about your system and prints it to the terminal next to an image of your choice!
## Features ## Features
- **Supports Linux, Mac OS X and Windows (Cygwin)!** - **Supports Linux, Mac OS X, \*BSD and Windows (Cygwin)!**
- If the script isn't working on your system open an issue. - If the script isn't working on your system open an issue.
- *BSD support is currently in testing! See issue #10 - *BSD support is currently in testing! See issue [#10](https://github.com/dylanaraps/fetch/issues/10#issuecomment-172432389)
- **It's Fast** - **It's Fast**
- The script makes heavy use of bash builtins and <br \>string manipulation. - The script makes heavy use of bash builtins and <br \>string manipulation.
- **Display an image next to the info. (or don't!)** - **Display an image next to the info. (or don't!)**
@ -294,6 +294,8 @@ Here's what's on my todo list
- Add Windows resolution detection - Add Windows resolution detection
- Add BSD cpu speed
- Look into iterm2 image rendering - Look into iterm2 image rendering
- Cleanup of info array handling - Cleanup of info array handling
@ -310,6 +312,7 @@ Here's what's on my todo list
- IP - IP
- etc - etc
<!-- }}} --> <!-- }}} -->

4
fetch
View file

@ -274,7 +274,7 @@ case "$(uname)" in
os="OpenBSD" os="OpenBSD"
;; ;;
*"BSD" | "DragonFly") *"BSD")
os="BSD" os="BSD"
;; ;;
@ -312,7 +312,6 @@ case "$os" in
"BSD") "BSD")
distro="$(uname -v)" distro="$(uname -v)"
distro=${distro%% *} distro=${distro%% *}
distro=${distro/DragonFly/DragonFlyBSD}
;; ;;
"Windows") "Windows")
@ -566,6 +565,7 @@ getcpu () {
;; ;;
*"BSD") *"BSD")
# TODO: Cpu speed for other BSD distros
cpu="$(sysctl -n hw.model)" cpu="$(sysctl -n hw.model)"
;; ;;