winget install --interactive --id AutoHotkey.AutoHotkey
Remove-Item -Path "$Env:AppData\Microsoft\Windows\Start Menu\Programs\Startup\AutoHotkey.lnk" -Force -ErrorAction "SilentlyContinue"
$Shell = New-Object -ComObject WScript.Shell
$Shortcut = $Shell.CreateShortcut("$Env:AppData\Microsoft\Windows\Start Menu\Programs\Startup\AutoHotkey.lnk")
$Shortcut.TargetPath = "$Env:UserProfile\.dotfiles\script.ahk"
$Shortcut.Save()
[System.Runtime.InteropServices.Marshal]::FinalReleaseComObject($Shell)
REG ADD "HKEY_CLASSES_ROOT\.ts" /VE /D "txt_auto_file" /T REG_SZ /F
REG ADD "HKEY_CLASSES_ROOT\.ts" /V "Content Type" /D "text/plain" /T REG_SZ /F
REG ADD "HKEY_CLASSES_ROOT\.ts" /V "PerceivedType" /D "text" /T REG_SZ /F
- Edit folder options
- Open Explorer to:
This PC
- Disable
Show recently used files
- Disable
Show frequently used folders
- Disable
Show files from Office.com
- Disable
Show Network
- Open Explorer to:
- Specify quick access:
Home
Desktop
Downloads
Pictures
Projects
Videos
- Tweak columns (
270
,460
,80
,120
)
winget install --interactive --id Microsoft.VisualStudioCode
Add-EnvironmentPath -Path "$Env:LocalAppData\Programs\Microsoft VS Code\bin" -Scope "User"
Remove-Item -Path "$Env:AppData\Code" -Recurse -Force -ErrorAction "SilentlyContinue"
Remove-Item -Path "$Env:UserProfile\.vscode" -Recurse -Force -ErrorAction "SilentlyContinue"
REG ADD "HKEY_CLASSES_ROOT\Directory\shell\Code" /VE /D "Open in Code" /T REG_SZ /F
REG ADD "HKEY_CLASSES_ROOT\Directory\shell\Code" /V "Icon" /D "%LocalAppData%\Programs\Microsoft VS Code\Code.exe" /T REG_EXPAND_SZ /F
REG ADD "HKEY_CLASSES_ROOT\Directory\shell\Code\command" /VE /D "%LocalAppData%\Programs\Microsoft VS Code\Code.exe --add ""%1""" /T REG_EXPAND_SZ /F
REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\Code" /VE /D "Open in Code" /T REG_SZ /F
REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\Code" /V "Icon" /D "%LocalAppData%\Programs\Microsoft VS Code\Code.exe" /T REG_EXPAND_SZ /F
REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\Code\command" /VE /D "%LocalAppData%\Programs\Microsoft VS Code\Code.exe --add ""%V""" /T REG_EXPAND_SZ /F
winget install --interactive --id SublimeHQ.SublimeMerge
Add-EnvironmentPath -Path "C:\Program Files\Sublime Merge" -Scope "User"
Remove-Item -Path "$Env:AppData\Sublime Merge" -Recurse -Force -ErrorAction "SilentlyContinue"
Remove-Item -Path "$Env:LocalAppData\Sublime Merge" -Recurse -Force -ErrorAction "SilentlyContinue"
New-Item -Path "$Env:AppData\Sublime Merge\Packages" -ItemType "Directory" -ErrorAction "SilentlyContinue"
New-Item -Path "$Env:AppData\Sublime Merge\.Disable Safe Mode Shortcut" -ItemType "File"
New-Item -Path "$Env:AppData\Sublime Merge\Packages\User" -ItemType "SymbolicLink" -Target "$Env:UserProfile\.dotfiles\merge"
REG ADD "HKEY_CLASSES_ROOT\Directory\shell\Merge" /VE /D "Open in Merge" /T REG_SZ /F
REG ADD "HKEY_CLASSES_ROOT\Directory\shell\Merge" /V "Icon" /D "%ProgramFiles%\Sublime Merge\sublime_merge.exe" /T REG_EXPAND_SZ /F
REG ADD "HKEY_CLASSES_ROOT\Directory\shell\Merge\command" /VE /D "%ProgramFiles%\Sublime Merge\sublime_merge.exe ""%1""" /T REG_EXPAND_SZ /F
REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\Merge" /VE /D "Open in Merge" /T REG_SZ /F
REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\Merge" /V "Icon" /D "%ProgramFiles%\Sublime Merge\sublime_merge.exe" /T REG_EXPAND_SZ /F
REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\Merge\command" /VE /D "%ProgramFiles%\Sublime Merge\sublime_merge.exe ""%V""" /T REG_EXPAND_SZ /F
winget install --interactive --id Git.Git
Remove-Item -Path "$Env:UserProfile\.bashrc" -Force -ErrorAction "SilentlyContinue"
New-Item -Path "$Env:UserProfile\.bashrc" -ItemType "SymbolicLink" -Target "$Env:UserProfile\.dotfiles\git\.bashrc"
(Get-Item -Path "$Env:UserProfile\.bashrc" -Force).Attributes += "Hidden"
Remove-Item -Path "$Env:UserProfile\.inputrc" -Force -ErrorAction "SilentlyContinue"
New-Item -Path "$Env:UserProfile\.inputrc" -ItemType "SymbolicLink" -Target "$Env:UserProfile\.dotfiles\git\.inputrc"
(Get-Item -Path "$Env:UserProfile\.inputrc" -Force).Attributes += "Hidden"
Remove-Item -Path "$Env:UserProfile\.gitconfig" -Force -ErrorAction "SilentlyContinue"
New-Item -Path "$Env:UserProfile\.gitconfig" -ItemType "SymbolicLink" -Target "$Env:UserProfile\.dotfiles\git\.gitconfig"
(Get-Item -Path "$Env:UserProfile\.gitconfig" -Force).Attributes += "Hidden"
CMD /C 'XCOPY "%UserProfile%\.dotfiles\git\usr" "%ProgramFiles%\Git\usr" /E /C /I /F /R /Y'
cd ~
wsl --import Rocky ./VMs ./layer.tar
wsl -l -v
wsl -d Rocky
dnf update
dnf install epel-release
dnf install htop iputils ncurses passwd sudo tree vim which
adduser -G wheel ihor
echo -e "[user]\ndefault=ihor" | tee -a /etc/wsl.conf
passwd ihor
TITLEPREFIX=""
if [[ $(sfc 2>&1 | tr -d "\0") =~ SCANNOW ]]; then
TITLEPREFIX="Administrator: "
fi
function branch() {
BRANCH="$(git branch --show-current 2>/dev/null)"
if [ ! -z "$BRANCH" ]
then
echo " ($BRANCH)"
else
echo " "
fi
}
PS1='\[\033]0;${TITLEPREFIX}Bash\007\]\[\033[34m\]\w\[\033[35m\]`branch`\n\[\033[1;37m\]→ \[\033[00m\]'
alias cpwd="pwd | tr -d '\n' | clip"
alias clean="clear && history -c && history -w"
alias ls="ls -F --human-readable --color=auto --show-control-chars --group-directories-first"
alias tree="tree -C --charset unicode"
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /VE /F
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /V "{9F156763-7844-4DC4-B2B1-901F640F5155}" /T REG_SZ /F
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /V "{FDADFEE3-02D1-4E7C-A511-380F4C98D73B}" /T REG_SZ /F
REG ADD "HKEY_CLASSES_ROOT\Directory\shell\Terminal" /VE /D "Open in Terminal" /F
REG ADD "HKEY_CLASSES_ROOT\Directory\shell\Terminal" /V "Icon" /D "$Env:UserProfile\.dotfiles\terminal\terminal.ico" /T REG_EXPAND_SZ /F
REG ADD "HKEY_CLASSES_ROOT\Directory\shell\Terminal\command" /VE /D "wt.exe -d ""%1""" /T REG_EXPAND_SZ /F
REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\Terminal" /VE /D "Open in Terminal" /F
REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\Terminal" /V "Icon" /D "$Env:UserProfile\.dotfiles\terminal\terminal.ico" /T REG_EXPAND_SZ /F
REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\Terminal\command" /VE /D "wt.exe -d ""%V""" /T REG_EXPAND_SZ /F
winget install --interactive --id Google.Chrome
Add-EnvironmentPath -Path "$Env:ProgramFiles\Google\Chrome\Application" -Scope "User"
- Install extensions
- Angular Dev Tools
- Blank New Tab Page
- Google Translate
- Grammarly
https://*.grammarly.com/*
https://github.com/*
https://tophonetics.com/*
https://translate.google.com/*
https://www.deepl.com/*
- Modern for Wikipedia
- Refined GitHub
- uBlock Origin Lite
winget install --interactive --id Mozilla.Firefox
Add-EnvironmentPath -Path "$Env:ProgramFiles\Mozilla Firefox" -Scope "User"
Set-EnvironmentVariable -Name "MOZ_DISABLE_SAFE_MODE_KEY" -Value "1" -Scope "User"
- Disable
extensions.pocket.enabled
- Disable
services.sync.prefs.sync.extensions.activeThemeID
- Disable
ui.key.menuAccessKeyFocuses
- Enable
browser.urlbar.update2.engineAliasRefresh
winget install --interactive --id Telegram.TelegramDesktop
winget install --interactive --id Microsoft.Teams
winget install --interactive --id SlackTechnologies.Slack
winget install --interactive --id Rakuten.Viber
winget install --interactive --id OpenWhisperSystems.Signal
winget install --interactive --id Discord.Discord
winget install --interactive --id Toggl.TogglTrack
winget install --interactive --id Doist.Todoist
winget install --interactive --id Microsoft.PowerToys
winget install --interactive --id Obsidian.Obsidian
winget install --interactive --id Anki.Anki
- Advanced Browser ·
874215009
- Duplicate and Reorder ·
1114271285
- Image Resizer ·
1214357311
- Review Heatmap ·
1771074083
winget install --interactive --id Figma.Figma
winget install --interactive --id JGraph.Draw
winget install --interactive --id Affinity.Photo
winget install --interactive --id Volta.Volta
Set-EnvironmentVariable -Name "VOLTA_FEATURE_PNPM" -Value "1" -Scope "User"
volta install node@22.14
volta install pnpm@10.4
New-Item -Path "D:\Packages\NPM" -ItemType "Directory" -ErrorAction "SilentlyContinue"
Set-EnvironmentVariable -Name "NPM_CONFIG_CACHE" -Value "D:\Packages\NPM" -Scope "User"
pnpm config set store-dir D:\Packages\NPM
winget install --interactive --id Python.Python.3.12
New-Item -Path "D:\Packages\PIP" -ItemType "Directory" -ErrorAction "SilentlyContinue"
Set-EnvironmentVariable -Name "PIP_CACHE_DIR" -Value "D:\Packages\PIP" -Scope "User"
winget install --interactive --id PostgreSQL.PostgreSQL.17
winget install --interactive --id Postman.Postman
winget install --interactive --id WiresharkFoundation.Wireshark