]> apps.delaporte.us Git - dotfiles.git/commitdiff
Fixes
authorEdTheDev <edward@delaporte.us>
Sun, 12 Nov 2023 00:00:15 +0000 (18:00 -0600)
committerEdTheDev <edward@delaporte.us>
Sun, 12 Nov 2023 00:00:15 +0000 (18:00 -0600)
doc/start_windows.md
files/paths.ps1

index 539194e488c51e0c09dcc577878576323a22f7c4..29629acb49d16e53330bc9b544b173bef125d23a 100644 (file)
@@ -56,3 +56,18 @@ Set git username.
 git config --global user.email "edward@delaporte.us"
 git config --global user.name "Edward Delaporte"
 ```
+
+
+## Setup PowerShell Profile
+
+Edit your actual profile,
+```
+code $profile
+```
+
+And add something like:
+
+``` powershell
+$env:realProfile = "$HOME\dotfiles\files\Microsoft.PowerShell_profile.ps1"
+$profileContents = [string]::join([environment]::newline, (get-content -path $env:realProfile));invoke-expression $profileContents
+```
index 1b53bb88f3ff8ab411530c6ec9d246cbd87d0f45..b57e14a1fa726670aaad4bb2e50e61c1d04ee294 100644 (file)
@@ -15,10 +15,10 @@ function Add-ToPath {
 if($IsWindows){
        # Some Paths that are annoying to find/restore if the installer fails
        Add-ToPath "C:\Program Files\Git\cmd" # Version control is nice.
-       Add-ToPath "C:\Program Files\Microsoft VS Code\bin" # One Editor to rule them all
+       Add-ToPath "C:\Program Files\Microsoft VS Code\bin" -optional # One Editor to rule them all
        Add-ToPath "C:\Program Files\Git\cmd" # Version control is nice.
        Add-ToPath "C:\ProgramData\chocolatey\bin" # Package management is nice.
-       Add-ToPath "C:\Program Files (x86)\GnuWin32\bin" # GNU Utils - i.e. rm
+       Add-ToPath "C:\Program Files (x86)\GnuWin32\bin" -optional # GNU Utils - i.e. rm
        Add-ToPath "C:\bin\x16emu" -optional # X16 Emulator
        Add-ToPath "$env:src\x16-demo\tools" -optional # x16 python tools
        Add-ToPath "$env:src\flutter\bin" -optional # Flutter for Dart
@@ -35,4 +35,8 @@ else {
 # Command line tools
 Add-ToPath "$env:src\chart" -optional # command line chart utility edthedev\chart
 Add-ToPath "$env:src\agenda" -optional # command line chart utility edthedev\chart
-Add-ToPath "$env:src\todolist" -optional # todo list utility edthedev\todolist
\ No newline at end of file
+Add-ToPath "$env:src\todolist" -optional # todo list utility edthedev\todolist
+
+
+# $env:path+=";C:\Program Files\Git\bin"
+# $env:path+=";C:\Program Files (x86)\Microsoft VS Code\"