1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-02 07:07:46 +00:00

fixes after #5060 (#197)

This commit is contained in:
Darren Schroeder 2022-04-01 06:42:38 -05:00 committed by GitHub
parent 7f8d633ac3
commit 048017afea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -56,7 +56,7 @@ def path_abbrev_if_needed [apath term_width] {
let tokens = ($tokens | prepend $"($T)~")
# append the last part of the path
let tokens = ($tokens | append $"($PB)($splits | last | get 0)($R)")
let tokens = ($tokens | append $"($PB)($splits | last)($R)")
# collect
$tokens | str collect $"($T)/"
@ -94,7 +94,7 @@ def path_abbrev_if_needed [apath term_width] {
let tokens = (for x in $top_part {
$"/($T)(($x | split chars).0)($R)"
})
let tokens = ($tokens | append $"/($PB)($end_part.0)($R)")
let tokens = ($tokens | append $"/($PB)($end_part)($R)")
$tokens | str collect $"($T)"
}
}

View file

@ -55,7 +55,7 @@ def path_abbrev_if_needed [apath term_width] {
let tokens = ($tokens | prepend $"($T)~")
# append the last part of the path
let tokens = ($tokens | append $"($PB)($splits | last | get 0)($R)")
let tokens = ($tokens | append $"($PB)($splits | last)($R)")
# collect
$tokens | str collect $"($T)/"
@ -93,7 +93,7 @@ def path_abbrev_if_needed [apath term_width] {
let tokens = (for x in $top_part {
$"/($T)(($x | split chars).0)($R)"
})
let tokens = ($tokens | append $"/($PB)($end_part.0)($R)")
let tokens = ($tokens | append $"/($PB)($end_part)($R)")
$tokens | str collect $"($T)"
}
}