From: EdTheDev Date: Sun, 12 Nov 2023 00:00:15 +0000 (-0600) Subject: Fixes X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/4a905cbf06405f033c5f24b7e673a52b4513182a Fixes --- diff --git a/doc/start_windows.md b/doc/start_windows.md index 539194e..29629ac 100644 --- a/doc/start_windows.md +++ b/doc/start_windows.md @@ -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 +``` diff --git a/files/paths.ps1 b/files/paths.ps1 index 1b53bb8..b57e14a 100644 --- a/files/paths.ps1 +++ b/files/paths.ps1 @@ -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\"