Skip to content

Commit

Permalink
Fixing new-line splitting (thanks to @namero999)
Browse files Browse the repository at this point in the history
Also updating the comment to note this needs at least PowerShell v3+.
  • Loading branch information
staxmanade committed Oct 6, 2014
1 parent 729f4e1 commit 9ba90bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions completion/powershell
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
#
# Usage:
#
# To enable powershell <tab> completion for gulp, add the below to your $PROFILE
# To enable powershell <tab> completion for gulp you need to be running
# at least PowerShell v3 or greater and add the below to your $PROFILE
#
# Invoke-Expression ((gulp --completion=powershell) -join [System.Environment]::NewLine)
#
Expand Down Expand Up @@ -38,7 +39,7 @@ $gulp_completion_Process = {
if($cache.ContainsKey($sha1gulpFile)){
$tasks = $cache[$sha1gulpFile];
} else {
$tasks = (gulp --tasks-simple).split('\n');
$tasks = (gulp --tasks-simple).split("`n");
$cache[$sha1gulpFile] = $tasks;
}

Expand Down

0 comments on commit 9ba90bc

Please sign in to comment.