1
Fork 0
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:
Darren Schroeder 2022-05-02 10:02:02 -05:00 committed by GitHub
parent 3850edbb50
commit 30b8a449ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,10 +172,10 @@ def get_os_icon [os] {
(char -u f179)
} else if ($os.name =~ windows) {
(char -u f17a)
} else if ($os.family =~ unix) {
(char -u f17c)
} else if ($os.kernel_version =~ WSL) {
$'(char -u f17a)(char -u f17c)'
} else if ($os.family =~ unix) {
(char -u f17c)
} else {
''
}