nu_scripts/sourced/filesystem/up.nu
2023-11-20 06:55:35 -06:00

9 lines
189 B
Plaintext
Executable File

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 ("." | repeat ($limit + 1) | str join)
}