Skip to content

AvrumFeldman/environment-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Pre requisite

  • Install bitwarden secrets tool (bws).
  • set BWS_ACCESS_TOKEN env variable.

Execute the following as admin on new machine.

$Profiles = "$env:userprofile\Documents\PowerShell\Microsoft.VSCode_profile.ps1","$env:userprofile\Documents\PowerShell\Microsoft.PowerShell_profile.ps1","$env:userprofile\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1","$env:userprofile\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1"

Get-ChildItem -File $profiles | Rename-Item -NewName {$_.name + ".old"} -erroraction SilentlyContinue

New-Item -ItemType SymbolicLink -Target ".\Powershell_profile.ps1" -Path $profiles

New-Item -ItemType SymbolicLink -Target "$env:USERPROFILE\Documents\powershelling\ssh_config" -Path "$env:USERPROFILE\.ssh\config"

In Linux execute the following in Powershell to setup the symbolic link

New-Item -ItemType SymbolicLink -Target $pwd/Powershell_profile.ps1 -Path $PROFILE -force

About

Dumping ground for my powershell dev environment setup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors