Skip to content

Commit

Permalink
posh-direnv
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Sep 1, 2021
1 parent da1272c commit 652b425
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ indent_size = 2
[{*.gitkeep,__init__.py}]
insert_final_newline = none

#
# Windows junk
[{*.cmd,*.bat,*.reg,*.ps1,*.vbs,*.cs,*.fs,*.fsx,*.ini,*.ahk}]
#
[{*.cmd,*.bat,*.reg,*.ps1,*.vbs,*.cs,*.fs,*.fsx,*.ini,*.ahk,*.psenvrc}]
end_of_line = crlf
insert_final_newline = false

Expand Down
24 changes: 24 additions & 0 deletions sample.psenvrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Install:
#
# PS> cp sample.psenvrc .psenvrc
# PS> Edit-DirEnvRc
# Ctrl+S
#
# Uninstall:
#
# PS> rm .psenvrc
#

#
# Load MSVC
#
cmd.exe /c "`"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat`" x64 & set" |
foreach {
if ($_ -match "=") {
$v = $_.split("=")
[Environment]::SetEnvironmentVariable($v[0], $v[1])
}
}

$Env:CXXFLAGS = "/std:c++17 /EHsc"

0 comments on commit 652b425

Please sign in to comment.