Skip to content

Commit c603a39

Browse files
authored
autojump now receives an arbitrary number of arguments instead of only one
1 parent 13de337 commit c603a39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nu-hooks/nu-hooks/filesystem/autojump.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def autojump_add_to_database [dir] {
1414
$env.AUTOJUMP_SOURCED = 1
1515
autojump --add $dir
1616
}
17-
def --env j [dir] {
17+
def --env j [...dir] {
1818
$env.AUTOJUMP_SOURCED = 1
19-
cd (autojump $dir)
19+
cd (autojump ...$dir)
2020
}
2121
$env.config = ($env.config | upsert hooks.env_change.PWD {|config|
2222
let val = ($config | get -i hooks.env_change.PWD)

0 commit comments

Comments
 (0)