mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-01-17 22:11:57 +00:00
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
9 lines
189 B
Nu
9 lines
189 B
Nu
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)
|
|
}
|