summaryrefslogtreecommitdiff
path: root/bin/spack_pwsh.ps1
blob: 6340aa8e86e7056b44fca5f6c922204173e8b703 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# Copyright 2013-2024 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
 }