mirror of
https://github.com/danbee/dotfiles-local
synced 2025-03-04 08:49:07 +00:00
Rewrite os in shell
This commit is contained in:
parent
93f6e94d77
commit
766726309e
@ -1,21 +0,0 @@
|
||||
class OS
|
||||
ICONS = {
|
||||
"Darwin" => "",
|
||||
"Linux" => "",
|
||||
"FreeBSD" => "",
|
||||
}
|
||||
|
||||
def os
|
||||
"#{icon} #{name}"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def name
|
||||
@os ||= `uname -s`.strip
|
||||
end
|
||||
|
||||
def icon
|
||||
ICONS[name]
|
||||
end
|
||||
end
|
||||
Loading…
Reference in New Issue
Block a user