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

up.nu fixed (#252)

fix for version 0.64
This commit is contained in:
Kamil 2022-06-16 18:09:15 +00:00 committed by GitHub
parent 2e41bcc947
commit bc60e64019
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,14 @@
def up_inner [limit: int] { def up_inner [limit: int] {
(for $e in 0..$limit { "." } | str collect) for $e in 0..$limit { "." }
| str collect
} }
# Go up a number of directories # Go up a number of directories
def-env up [ def-env up [
limit: int # The number of directories to go up limit: int # The number of directories to go up
] { ] {
cd (up_inner $limit) cd (
(up_inner $limit)
| into string
)
} }