summaryrefslogtreecommitdiff
path: root/bin/spack_pwsh.ps1
blob: 0f5f0725496b18fcd3c70396bbc2e066279ca120 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

$Env:SPACK_PS1_PATH="$PSScriptRoot\..\share\spack\setup-env.ps1"
& (Get-Process -Id $pid).Path -NoExit {
     . $Env:SPACK_PS1_PATH ; 
    Push-Location $ENV:SPACK_ROOT
 }