From c3abd6439ca1d99290dbcda2f725643793a1b63c Mon Sep 17 00:00:00 2001 From: Kevin Zhang <45326534+taooceros@users.noreply.github.com> Date: Fri, 11 Nov 2022 12:30:58 -0600 Subject: [PATCH] Fix undetected windows enviroment (#312) --- prompt/oh-my-v2.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}