1
Fork 0
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:
Darren Schroeder 2022-04-07 08:45:04 -05:00 committed by GitHub
parent 577ad93638
commit e6d8d2704e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 44 additions and 44 deletions

View file

@ -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
})