From 3334cad9aaad4da6d902645e936e5fbbd8c4cbcf Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Fri, 27 Jan 2023 07:14:35 -0600 Subject: [PATCH] small tweaks to get panache working again (#365) --- prompt/panache-git.nu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prompt/panache-git.nu b/prompt/panache-git.nu index de9c67c..b5bd0a6 100644 --- a/prompt/panache-git.nu +++ b/prompt/panache-git.nu @@ -17,7 +17,7 @@ # An opinionated Git prompt for Nushell, styled after posh-git -export def panache-git [] { +export def prompt-with-panache [] { let prompt = ($'(current-dir) (repo-styled)' | str trim) $'($prompt)> ' } @@ -33,9 +33,9 @@ export def current-dir [] { let in_sub_dir_of_home = ($current_dir_relative_to_home | is-empty | nope) let current_dir_abbreviated = (if $in_sub_dir_of_home { - $'~(char separator)($current_dir_relative_to_home)' + $'~(char separator)($current_dir_relative_to_home)' | str replace -a '\\' '/' } else { - $current_dir + $current_dir | str replace -a '\\' '/' }) $'(ansi reset)($current_dir_abbreviated)'