1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-02 23:27:45 +00:00
nu_scripts/sourced/filesystem/up.nu
2023-11-20 06:55:35 -06:00

8 lines
189 B
Text
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)
}