-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetup.ps1
More file actions
20 lines (14 loc) · 788 Bytes
/
Setup.ps1
File metadata and controls
20 lines (14 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
$DOTFILES_ROOT = (Get-Location).Path
# In Windows this environment variable is renamed to DOTFILES_PROFILE from PROFILE,
# to not confuse it with $PROFILE environment variable which points to powershell profile directory.
$DOTFILES_PROFILE = (Join-Path $DOTFILES_ROOT "profiles\nosferatu-win")
# Set DOTFILES_ROOT AND PROFILE for the currently ongoing session.
$env:DOTFILES_ROOT = $DOTFILES_ROOT
$env:DOTFILES_PROFILE = $DOTFILES_PROFILE
[Environment]::SetEnvironmentVariable("DOTFILES_ROOT", $DOTFILES_ROOT, "User")
[Environment]::SetEnvironmentVariable("DOTFILES_PROFILE", $DOTFILES_PROFILE, "User")
. (Join-Path $env:DOTFILES_ROOT "Common.ps1")
Elevate
. Source-Script (Join-Path $env:DOTFILES_PROFILE "Setup.ps1")