A collection of configuration files with defined aliases, color schemes, etc. for several applications.
Make the following hardlinks for Windows user's config files.
mv $ENV:LOCALAPPDATA\Arduino15\arduino-cli.yaml $ENV:LOCALAPPDATA\Arduino15\arduino-cli.yaml.bak
New-Item -ItemType Hardlink -Path "$ENV:LOCALAPPDATA\Arduino15\arduino-cli.yaml" -Target C:\dev\projects\configs\ArduinoIDE\2.x\arduino-cli.yaml
New-Item -ItemType Hardlink -Path "$ENV:APPDATA\bat\.config" -Target C:\dev\projects\configs\bat\.config
Ensure .profile
and .bash_profile
exist in $HOME
. Take care to update an existing .bashrc
if
there is one.
No .bashrc
(ex. Git for Windows):
New-Item -ItemType Hardlink -Path "$HOME\.bashrc" -Target C:\dev\projects\configs\bash\.bashrc
New-Item -ItemType Hardlink -Path "$HOME\.bash_aliases" -Target C:\dev\projects\configs\bash\.bash_aliases
Existing .bashrc
without reference to .bash_aliases
(WSL):
cat C:/dev/projects/configs/bash/.bashrc >> ./~bashrc
PowerShell:
cat C:\dev\projects\configs\bash\.bashrc >> $HOME\.bashrc
New-Item -ItemType Hardlink -Path "$HOME\doskey-macros.txt" -Target C:\dev\projects\configs\cmd\doskey-macros.txt
Then run the following command from a command prompt (not PowerShell):
reg add "HKCU\Software\Microsoft\Command Processor" /v Autorun /d "doskey /macrofile=\"%HOME%\doskey-macros.txt\"" /f
New-Item -ItemType Hardlink -Path "$ENV:ProgramFiles\Vim\_vimrc" -Target C:\dev\projects\configs\vim\_vimrc
New-Item -ItemType Hardlink -Path "$HOME\.gitconfig" -Target C:\dev\projects\configs\git\.gitconfig
New-Item -ItemType Hardlink -Path "$HOME\.rgconfig" -Target C:\dev\projects\configs\ripgrep\.rgconfig
New-Item -ItemType Hardlink -Path "$ENV:ProgramFiles\PowerShell\7\Microsoft.PowerShell_profile.ps1" -Target C:\dev\projects\configs\powershell\Microsoft.PowerShell_profile.ps1
New-Item -ItemType Hardlink -Path "$HOME\OneDrive\Documents\PowerShell\Microsoft.VSCode_profile.ps1" -Target C:\dev\projects\configs\powershell\Microsoft.VSCode_profile.ps1
New-Item -ItemType Hardlink -Path "$ENV:APPDATA\bottom\bottom.toml" -Target C:\dev\projects\configs\bottom\bottom.toml