Skip to content

Commit

Permalink
fix(fish): Better handling of description
Browse files Browse the repository at this point in the history
  • Loading branch information
mklabs committed May 1, 2016
1 parent e42149a commit 779a188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function _{pkgname}_completion
set completions (eval env DEBUG=\"" \"" COMP_CWORD=\""$cmd\"" COMP_LINE=\""$cmd\"" COMP_POINT=\""$cursor\"" {completer} completion --json)

for completion in $completions
set cmd "node -pe \"'$completion'.split(':').join('\n')\""
set cmd "node -e \"var parts = '$completion'.split(':'); console.log(parts.slice(0, -1).join(':')); console.log(parts.slice(-1)[0]);\""
set parts (eval $cmd)
complete -f -c {pkgname} -a "'$parts[1]'" -d "$parts[2]"
echo $parts[1]
Expand Down

0 comments on commit 779a188

Please sign in to comment.