Skip to content

Commit

Permalink
don't try to re-alias allscoped aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesampson committed Feb 7, 2016
1 parent af39258 commit e57a783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function reset_alias($name, $value) {

function reset_aliases() {
# for aliases where there's a local function, re-alias so the function takes precedence
$aliases = get-alias |? { $_.options -notmatch 'readonly' } |% { $_.name }
$aliases = get-alias |? { $_.options -notmatch 'readonly|allscope' } |% { $_.name }
get-childitem function: | % {
$fn = $_.name
if($aliases -contains $fn) {
Expand Down

0 comments on commit e57a783

Please sign in to comment.