mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 07:07:46 +00:00
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
This commit is contained in:
parent
106e56f48b
commit
f23fbf5106
1 changed files with 4 additions and 3 deletions
|
@ -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)]
|
||||
]
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue