summaryrefslogtreecommitdiffstatshomepage
path: root/misc/completion/powershell
diff options
context:
space:
mode:
Diffstat (limited to 'misc/completion/powershell')
-rw-r--r--misc/completion/powershell/git-bug6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/completion/powershell/git-bug b/misc/completion/powershell/git-bug
index 99d13e99..fb426dab 100644
--- a/misc/completion/powershell/git-bug
+++ b/misc/completion/powershell/git-bug
@@ -10,7 +10,7 @@ filter __git-bug_escapeStringWithSpecialChars {
$_ -replace '\s|#|@|\$|;|,|''|\{|\}|\(|\)|"|`|\||<|>|&','`$&'
}
-[scriptblock]$__git_bugCompleterBlock = {
+[scriptblock]${__git_bugCompleterBlock} = {
param(
$WordToComplete,
$CommandAst,
@@ -85,7 +85,7 @@ filter __git-bug_escapeStringWithSpecialChars {
__git-bug_debug "Calling $RequestComp"
# First disable ActiveHelp which is not supported for Powershell
- $env:GIT_BUG_ACTIVE_HELP=0
+ ${env:GIT_BUG_ACTIVE_HELP}=0
#call the command store the output in $out and redirect stderr and stdout to null
# $Out is an array contains each line per element
@@ -242,4 +242,4 @@ filter __git-bug_escapeStringWithSpecialChars {
}
}
-Register-ArgumentCompleter -CommandName 'git-bug' -ScriptBlock $__git_bugCompleterBlock
+Register-ArgumentCompleter -CommandName 'git-bug' -ScriptBlock ${__git_bugCompleterBlock}