Skip to content

Commit

Permalink
fix: use def --env
Browse files Browse the repository at this point in the history
  • Loading branch information
melMass authored Nov 17, 2023
1 parent 69618bd commit b946cab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/nu-git-manager-sugar/gist.nu
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def "nu-complete list-local-gists" [] {
}

# jump to a gist in the `GIST_HOME`
export def-env goto [
export def --env goto [
gist: string@"nu-complete list-local-gists" # the gist to jump to
] {
cd (gist-home | path join $gist)
Expand Down
2 changes: 1 addition & 1 deletion src/nu-git-manager-sugar/git.nu
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export def "lock clean" [] {
}

# go to the root of the repository from anywhere in the worktree
export def-env root [] {
export def --env root [] {
cd (repo-root)
}

Expand Down

0 comments on commit b946cab

Please sign in to comment.