mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 23:27:45 +00:00
8 lines
189 B
Text
Executable file
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)
|
|
}
|