commit c2d21c30fbd11c9b2ab07f555e4be30e963e98d5
parent fc86399f29b06647b0ce88c5233c34dca0c3a734
Author: João F. (BeyondMagic/koetemagie) <koetemagie@gmail.com>
Date: Sat, 11 Jan 2025 23:24:17 -0300
fix(quitcd.nu): specify signature in/out of command
Nushell 0.10.1 introduces [stricter command signature parsing](https://www.nushell.sh/blog/2024-12-24-nushell_0_101_0.html#stricter-command-signature-parsing-toc), causing error upon importing this module.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/misc/quitcd/quitcd.nu b/misc/quitcd/quitcd.nu
@@ -7,7 +7,7 @@
export def --env n [
...args : string # Extra flags to launch nnn with.
--selective = false # Change directory only when exiting via ^G.
-] -> nothing {
+]: nothing -> nothing {
# The behaviour is set to cd on quit (nnn checks if $env.NNN_TMPFILE is set).
# Hard-coded to its respective behaviour in `nnn` source-code.