Skip to content

Commit 9666184

Browse files
authored
Merge pull request #3016 from carapace-sh/fish-local-var
fish: fix local var
2 parents fc920c4 + 34d1d3f commit 9666184

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

cmd/carapace/cmd/lazyinit/fish.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ func Fish(completers []string) string {
99
snippet := `%v%v
1010
1111
function _carapace_completer
12+
set --local data
1213
IFS='' set data (echo (commandline -cp)'' | sed "s/ \$/ ''/" | xargs carapace $argv[1] fish 2>/dev/null)
1314
if [ $status -eq 1 ]
1415
IFS='' set data (echo (commandline -cp)"'" | sed "s/ \$/ ''/" | xargs carapace $argv[1] fish 2>/dev/null)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/carapace-sh/carapace-bin
33
go 1.23.1
44

55
require (
6-
github.com/carapace-sh/carapace v1.10.0
6+
github.com/carapace-sh/carapace v1.10.1
77
github.com/carapace-sh/carapace-bridge v1.4.8
88
github.com/carapace-sh/carapace-selfupdate v0.0.10
99
github.com/carapace-sh/carapace-shlex v1.1.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/carapace-sh/carapace v1.10.0 h1:H+1P7D6AnT0RW+lVHkyafDx0U10N/3p0X6TcpozhTxo=
2-
github.com/carapace-sh/carapace v1.10.0/go.mod h1:Zs3DpsawpFm+8fEfRVYE9EzMBYH8u7S3Aw9yAAKX0JM=
1+
github.com/carapace-sh/carapace v1.10.1 h1:Bb2rlj1SwWFDyKQ7CKiMdy6k/jv/XhiRCkAR+A1Vkls=
2+
github.com/carapace-sh/carapace v1.10.1/go.mod h1:Zs3DpsawpFm+8fEfRVYE9EzMBYH8u7S3Aw9yAAKX0JM=
33
github.com/carapace-sh/carapace-bridge v1.4.8 h1:RdEJ8pt8oNpCczZQ94U5npJ0ThY5G0XG5AKDYvCUZII=
44
github.com/carapace-sh/carapace-bridge v1.4.8/go.mod h1:5pjJSa9xLmJafNACZSoAMs3uGD4KVbXMqzYIk/r8CkA=
55
github.com/carapace-sh/carapace-pflag v1.0.0 h1:uJMhl+vwEM/Eb0UdxZUuv4jo4rUAyPijkRGP5gfCuCE=

0 commit comments

Comments
 (0)