Skip to content

Commit 86bdb43

Browse files
Added support for FreeBSD
1 parent 5c91dcc commit 86bdb43

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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)