diff --git a/prompt/oh-my-v2.nu b/prompt/oh-my-v2.nu index b61831c..ac6c7eb 100644 --- a/prompt/oh-my-v2.nu +++ b/prompt/oh-my-v2.nu @@ -239,7 +239,7 @@ def get_color [name, mode] { def home_abbrev [os_name] { let is_home_in_path = ($env.PWD | str starts-with $nu.home-path) if $is_home_in_path { - if ($os_name == "Windows") { + if ($os_name == "windows") { let home = ($nu.home-path | str replace -a '\\' '/') let pwd = ($env.PWD | str replace -a '\\' '/') $pwd | str replace $home '~' @@ -432,4 +432,4 @@ def get_prompt [color_mode] { left_prompt: $left_prompt right_prompt: $right_prompt } -} \ No newline at end of file +}