Skip to content

Commit ea86704

Browse files
authored
Merge pull request #10 from RafalLukawiecki/master
Added support for FreeBSD
2 parents 5c91dcc + 6c7c474 commit ea86704

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This plugin is useful if:
1010
- you have a flaky internet connection and you don't want to be surprised
1111
when a simple `curl` or `wget` fails because the connection just broke.
1212

13-
Tested and working on Linux, OSX and Cygwin.
13+
Tested and working on Linux, OSX, FreeBSD, and Cygwin.
1414

1515
### Usage
1616

scripts/online_status_icon.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ is_cygwin() {
2525
[[ $(uname) =~ CYGWIN ]]
2626
}
2727

28+
is_freebsd() {
29+
[ $(uname) == FreeBSD ]
30+
}
31+
2832
online_icon_default() {
2933
if is_osx; then
3034
echo "$online_icon_osx"
@@ -44,7 +48,7 @@ offline_icon_default() {
4448
}
4549

4650
online_status() {
47-
if is_osx; then
51+
if is_osx || is_freebsd; then
4852
local timeout_flag="-t"
4953
else
5054
local timeout_flag="-w"

0 commit comments

Comments
 (0)