diff --git a/sourced/filesystem/up.nu b/sourced/filesystem/up.nu index 0872ec3..43a1dda 100755 --- a/sourced/filesystem/up.nu +++ b/sourced/filesystem/up.nu @@ -1,6 +1,8 @@ +use std repeat; + # Go up a number of directories def-env up [ limit = 1: int # The number of directories to go up (default is 1) ] { - cd ("." * ($limit + 1)) + cd ("." | repeat ($limit + 1) | str join) }