mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-08-17 17:30:24 +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)
|
|
}
|