From f23fbf51069faf75f72fcdc0155919d7ee554bd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=B6rmet=20Yiltiz?= Date: Tue, 7 Feb 2023 14:16:58 -0600 Subject: [PATCH] Update to 0.75.1 syntax (#371) * Update to 0.75.1 syntax - returns Table() rather than list(Any) - use $env.PWD * use pwd from let binding --- prompt/async_git_prompt/prompt.nu | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/prompt/async_git_prompt/prompt.nu b/prompt/async_git_prompt/prompt.nu index 3b74332..23bde35 100644 --- a/prompt/async_git_prompt/prompt.nu +++ b/prompt/async_git_prompt/prompt.nu @@ -15,9 +15,10 @@ def prompt-git-branch [] { def prompt-create-left-prompt [] { let pwd = ($env.PWD | str replace $env.HOME '~') prompt-concat [ - {text: $pwd, color: (ansi green_bold)} - {text: (prompt-git-branch), color: (ansi blue_bold)} - {text: (async-git-prompt-string), color: (ansi green_bold)} + [text color]; + [pwd (ansi green_bold)] + [(prompt-git-branch) (ansi blue_bold)] + [(async-git-prompt-string) (ansi green_bold)] ] }