mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-07-31 14:17:45 +00:00
update scripts to support str replace
(#200)
This commit is contained in:
parent
577ad93638
commit
e6d8d2704e
10 changed files with 44 additions and 44 deletions
|
@ -42,7 +42,7 @@ export def build-prompt [] {
|
|||
})
|
||||
|
||||
let pwd-str = (if (pwd | str starts-with $env.HOME).0 {
|
||||
(pwd | str find-replace $env.HOME '~' | str trim).0
|
||||
(pwd | str replace $env.HOME '~' | str trim).0
|
||||
} else {
|
||||
pwd
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue