Skip to content
This repository has been archived by the owner on Jun 12, 2021. It is now read-only.

Commit

Permalink
added support for bsd
Browse files Browse the repository at this point in the history
  • Loading branch information
reujab committed Jul 12, 2017
1 parent ecd8af3 commit 5d80e06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion icons.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func init() {
initIcon("ubuntu", "\uf30c") // Font Linux
initIcon("elementary", "\uf311") // Font Linux
initIcon("linux", "\uf17c") // Font Awesome; linux
initIcon("bsd", "\uf10f") // Font Linux
initIcon("root", "\ue00a") // Pomicons; lightning
initIcon("readonly", "\uf023") // Font Awesome; lock
initIcon("failed", "\ue009") // Pomicons; exclamation
Expand All @@ -55,7 +56,8 @@ func init() {
initIcon("SUSE", "")
initIcon("ubuntu", "")
initIcon("elementary", "")
initIcon("linux", "\U0001f427") // Emoji; penguin
initIcon("linux", "\U0001f427") // Emoji; penguin
initIcon("bsd", "")
initIcon("root", "\u26a1") // Emoji; high voltage
initIcon("readonly", "\U0001f512") // Emoji; locked
initIcon("failed", "\u2757") // Emoji; exclamation mark
Expand All @@ -81,6 +83,7 @@ func init() {
initIcon("ubuntu", "")
initIcon("elementary", "")
initIcon("linux", "")
initIcon("bsd", "")
initIcon("root", "#")
initIcon("readonly", "@")
initIcon("failed", "!")
Expand Down
2 changes: 2 additions & 0 deletions os.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@ func osSegment(segment *segment) {
if segment.value == "" {
segment.value = icons["linux"]
}
case "freebsd", "netbsd", "openbsd":
segment.value = icons["bsd"]
}
}

0 comments on commit 5d80e06

Please sign in to comment.