Files
dotfiles/dot_config/nushell/nu_scripts/sourced/filesystem/up.nu
Cian Hughes 896af887ca Changed . token to _dot
This change allows the dotfiles to work with chezmoi (e.g: on windows)
and improves grepability with neovim/telescope
2024-11-07 13:52:17 +00:00

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)
}