mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 07:07:46 +00:00
parent
2e41bcc947
commit
bc60e64019
1 changed files with 7 additions and 3 deletions
|
@ -1,10 +1,14 @@
|
||||||
def up_inner [limit: int] {
|
def up_inner [limit: int] {
|
||||||
(for $e in 0..$limit { "." } | str collect)
|
for $e in 0..$limit { "." }
|
||||||
|
| str collect
|
||||||
}
|
}
|
||||||
|
|
||||||
# Go up a number of directories
|
# Go up a number of directories
|
||||||
def-env up [
|
def-env up [
|
||||||
limit: int # The number of directories to go up
|
limit: int # The number of directories to go up
|
||||||
] {
|
] {
|
||||||
cd (up_inner $limit)
|
cd (
|
||||||
}
|
(up_inner $limit)
|
||||||
|
| into string
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue