mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 07:07:46 +00:00
update get_os_icon for wsl (#214)
This commit is contained in:
parent
3850edbb50
commit
30b8a449ae
1 changed files with 2 additions and 2 deletions
|
@ -172,10 +172,10 @@ def get_os_icon [os] {
|
||||||
(char -u f179)
|
(char -u f179)
|
||||||
} else if ($os.name =~ windows) {
|
} else if ($os.name =~ windows) {
|
||||||
(char -u f17a)
|
(char -u f17a)
|
||||||
} else if ($os.family =~ unix) {
|
|
||||||
(char -u f17c)
|
|
||||||
} else if ($os.kernel_version =~ WSL) {
|
} else if ($os.kernel_version =~ WSL) {
|
||||||
$'(char -u f17a)(char -u f17c)'
|
$'(char -u f17a)(char -u f17c)'
|
||||||
|
} else if ($os.family =~ unix) {
|
||||||
|
(char -u f17c)
|
||||||
} else {
|
} else {
|
||||||
''
|
''
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue