My dotfiles and configurations on Windows
[!INFO]
Estas configuraciones estás basadas en mi uso diario del sistema. Algunas herramientas podrían no resultar utiles para ti.
- Winget
-
Install or update winget.
It is a good idea to install or update winget after a windows fresh install.
Visit: the offficial store page for the package installer (Winget)
-
Restore the packages from the
winget-apps.json
- Opena a powershell terminal in with admin privileges
- Run the following command inside the folder that contains the file
winget-apps.json
winget import -i .\applist-winget --ignore-unavailable --ignore-versions --accept-package-agreements --accept-source-agreements
- Powershell
-
Allow non signed scripts execution in powershell:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
-
Set Config file path to
.config\powershell\user_profile.ps1
Create a default profile config file with the command:
nvim $profile.CurrentUserCurrentHost
and set a the path to this config file as en environment variable:
. $env:USERPROFILE\.config\powershell\user_profile.ps1
-
Fonts
To properly display the prompt theme with oh-my-posh, we will need to install them from:
-
Prompt Theme
This repo contains a configuration for oh-my-posh in the user_profile file and a slightly customized theme based on
takuya
.to modify the prompt use the file
takuya.omp.json
once it's set on the path indicated at the end of this guide.Check out the documentation for oh-my-posh: Docs page
To install the necessary powershell modules run:
# posh-git for git status summary
Install-Module posh-git -Scope CurrentUser -Force
# fzf
Install-Module -Name PSFzf -Scope CurrentUser -Force
# PSReadLine
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck
# Z jumper
Install-Module -Name Z -Force
# Terminal Icons
Install-Module -Name Terminal-Icons -Repository PSGallery -Force
To install Scoop run the command:
iwr -useb get.scoop.sh | iex
Install Scoop Apps:
Restore the packages inside of scoop-apps.json
with the command:
scoop import .\scoop-apps.json
Refer to the docs at: scoop
Refer to the docs: Microsoft Wsl docs
-
Install WSL
Run this command to enable the WSL feature:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
and then restart the system.
- Set the WSL Version to WSL 2
wsl --set-version 2
- Install a distribution
To know tha list of available distros run:
winget --list -o
to install a specific distro run:
wsl --install -d "Name of the distro"
- Powershell config file
create the folder for the config:
mkdir ~\.config\powershell
move the file user_profile.ps1
inside of the powershell folder on this repo to the route:
cp .\poweshell\user_profile.ps1 ~\.config\powershell\
copy the oh-my-posh theme file to the same route
cp .\poweshell\takuya.omp.json ~\.config\powershell\
- WSL config file
cp .wslconfig ~\
- gitconfig file
cp .gitconfig ~\