Skip to content

Commit 8cfd7ce

Browse files
committed
fix(scoop-completions): correct substring indices to properly trim .ps1 extension
1 parent 1e7fdd4 commit 8cfd7ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom-completions/scoop/scoop-completions.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def scoopCommands [] {
117117
[value, description];
118118
[
119119
# eg. scoop-help.ps1 -> help
120-
($command.name | path basename | str substring 6..-4),
120+
($command.name | path basename | str substring 6..-5),
121121
# second line is starts with '# Summary: '
122122
# eg. '# Summary: Install apps' -> 'Install apps'
123123
(open $command.name | lines | skip 1 | first | str substring 11..)

0 commit comments

Comments
 (0)