JMOrbegoso / Dotfiles-for-Windows-11

Dotfiles script to setup a development environment in Microsoft Windows 11.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dotfiles for Microsoft Windows 11

Repeatable, reboot resilient Dotfiles script to setup a development environment in Microsoft Windows 11.

Now you create and run πŸš€ Dotfiles projects for Windows 10/11 using this module for PowerShell: PSWindowsDotfiles

Usage

Open any Windows PowerShell host console (Except Windows Terminal) with administrator rights and run:

$GitHubRepositoryAuthor = "JMOrbegoso"; `
$GitHubRepositoryName = "Dotfiles-for-Windows-11"; `
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass; `
Invoke-Expression (Invoke-RestMethod -Uri "https://raw.githubusercontent.com/${GitHubRepositoryAuthor}/${GitHubRepositoryName}/main/Download.ps1");

What does?

This dotfiles script does:

  • Install Chocolatey.
  • Configure Chocolatey to remember installation arguments for future updates.
  • Install Hack Nerd Font.
  • Install Git.
  • Configure Git.
  • Install Vim.
  • Install Vim-Plug.
  • Install Vim plugins.
  • Install Visual Studio Code.
  • Configure Visual Studio Code.
  • Install Visual Studio Code extensions.
  • Install Oh My Posh for PowerShell.
  • Configure Oh My Posh theme.
  • Install Posh-Git for Oh My Posh.
  • Install Terminal-Icons for PowerShell.
  • Configure PSWebSearch for PowerShell.
  • Configure PSReadLine for PowerShell.
  • Configure Windows Terminal.
  • Install Notepad++.
  • Configure Notepad++.
  • Install .NET SDK.
  • Enable Windows Subsystem for Linux.
  • Install Ubuntu 20.04 LTS in WSL.
    • Install curl.
    • Install Neofetch.
    • Configure Git in Ubuntu.
    • Install Visual Studio Code extensions in Ubuntu.
    • Install Volta in Ubuntu.
      • Install Node.js LTS using Volta in Ubuntu.
      • Install NPM using Volta in Ubuntu.
      • Install Yarn using Volta in Ubuntu.
      • Install TypeScript using Volta in Ubuntu.
      • Install Yarn-Upgrade-All using Volta in Ubuntu.
      • Install NestJS CLI using Volta in Ubuntu.
    • Install Golang in Ubuntu.
    • Install HUGO in Ubuntu.
    • Install Vim in Ubuntu.
    • Install Vim-Plug in Ubuntu.
    • Install Vim plugins in Ubuntu.
    • Install Zsh in Ubuntu.
    • Install Oh My Zsh in Ubuntu.
    • Install Zsh-Autosuggestions for Oh My Zsh in Ubuntu.
    • Configure Oh My Zsh in Ubuntu.
  • Install Docker Desktop.
  • Configure File Explorer:
    • Show file extensions.
    • Open file explorer to This PC.
    • Set as background option moved to extended Context Menu.
    • Disable recently opened items from JumpList.
  • Microsoft Windows optional features:
    • Disable Windows Media Player.
    • Disable Internet Explorer.
    • Disable Microsoft XPS Document Writer.
    • Disable WorkFolders Client.
    • Enable Windows Sandbox.
  • Configure Windows 11 power plan.
  • Configure Windows 11 regional format:
    • First day of week: Monday.
    • Short date: 2017-04-05.
    • Long date: Wednesday, 5 April, 2017.
    • Short time: 19:40.
    • Long time: 19:40:07.
  • Rename PC.

Windows Terminal Custom Keyboard Shortcuts

Action Keyboard Shortcut
Open New Tab ctrl+t
Close Current Pane ctrl+w
Open New Split Pane in Horizontal alt+shift+h
Open New Split Pane in Vertical alt+shift+v

Alias and functions for PowerShell & Zsh

Terminal Profile

Alias Description PowerShell Zsh
edt Edit terminal profile βœ… βœ…
src Refresh terminal profile βœ… βœ…

Directories

Alias Description PowerShell Zsh
mkcd Create folder and navigate to it βœ… βœ…
trash Open the recycle bin folder βœ…

System Maintenance

Alias Description PowerShell Zsh
updsys Update apps and system. βœ… βœ…

Environment Variables

Alias Description PowerShell Zsh
pathl List the content of PATH environment variables βœ… βœ…

Git

Alias Description PowerShell Zsh
gcb git checkout creating new branch βœ… βœ…
ga git add βœ… βœ…
gaa git add all βœ… βœ…
gsc git clone, load submodules and navigate to the repository folder βœ… βœ…
gst git status βœ… βœ…
gcmsg git commit message βœ… βœ…
ggp git push origin current_branch βœ… βœ…
glg git log βœ… βœ…
gsrlc Git soft reset last commit βœ… βœ…
ghrlc Git hard reset last commit βœ… βœ…

Vim

Alias Description PowerShell Zsh
editvim Edit .vimrc file βœ… βœ…
sourcevim Refresh Vim configuration βœ…

Docker

Alias Description PowerShell Zsh
dpl Docker pull βœ… βœ…
dlc List the Docker containers working βœ… βœ…
dlca List all the Docker containers βœ… βœ…
dli List all the Docker images βœ… βœ…
dsc Stop Docker container βœ… βœ…
drc Delete Docker container βœ… βœ…
dri Delete Docker image βœ… βœ…

NPM

Alias Description PowerShell Zsh
ngl List global NPM packages βœ…
ngo List outdated global NPM packages βœ…
ngu Update global NPM package βœ…

Yarn

Alias Description PowerShell Zsh
yi Install Yarn package βœ…
yid Install Yarn package as dev dependency βœ…
yl List all Yarn packages locally installed βœ…
ylo List outdated Yarn packages locally installed βœ…
yu Update Yarn package βœ…
yua Upgrade all Yarn packages βœ…
yr Remove Yarn package βœ…

NestJS

Alias Description PowerShell Zsh
nestnew Create a new project with NestJS βœ…

Go

Alias Description PowerShell Zsh
gmi Initialize Go modules βœ…

Web search from the console

Alias Example PowerShell Zsh
bing bing "Windows 11" βœ… βœ…
google google "Windows 11" βœ… βœ…
duckduckgo duckduckgo "Windows 11" βœ… βœ…
youtube youtube "Windows 11" βœ… βœ…
github github "Windows 11" βœ… βœ…
stackoverflow stackoverflow "Windows 11" βœ… βœ…

About

Dotfiles script to setup a development environment in Microsoft Windows 11.

License:MIT License


Languages

Language:PowerShell 65.2%Language:Vim Script 19.6%Language:Shell 15.2%