From 3850edbb50f7c44027cf7f05b17e0984b2757241 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Mon, 25 Apr 2022 11:48:26 -0500 Subject: [PATCH] update type-o for windows (#213) --- prompt/oh-my.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prompt/oh-my.nu b/prompt/oh-my.nu index cf6fa21..c6dbc0e 100644 --- a/prompt/oh-my.nu +++ b/prompt/oh-my.nu @@ -19,7 +19,7 @@ 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 '~'