Commands for Making Symlink
- Link ➡️ To
- Target ➡️ From
New-Item -ItemType SymbolicLink -Path "<link_path>" -Target "<target_path>" -ForceMKLINK [[/D] | [/H] | [/J]] Link Target
/D Creates a directory symbolic link. Default is a file symbolic link.
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link Specifies the new symbolic link name.
Target Specifies the path (relative or absolute)that the new link refers to.Code Base
config\vscode\
All the Shortcuts, Settings and Extension List are Added in the above folder.
config\
The Microsoft Powershell and Bash Profile settings are added in the above folder.
.gitconfig
This file includes my default branch, my username and git settings.
packages\
This folder contains the packages i need to install or currently have it on my system.
The below is the PowerShell command to get all list of installed packages in windows
Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*, HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object { $_.DisplayName -ne $null -and $_.SystemComponent -ne 1 } | Select-Object DisplayName, DisplayVersion | Sort-Object DisplayName > installed_apps.txtThis will be update in future, It will includes the scripts to install softwares, packages and setup the profiles/configs.
- Create a Script to install the softwares using winget(or other better package manager).