mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-09-11 21:57:33 +03:00
9 lines
189 B
Plaintext
Executable File
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)
|
|
}
|