Open a classic PowerShell terminal with administrator privileges and run the following:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
wget -O - https://raw.githubusercontent.com/gabriel-vanca/Arch-PowerShell/main/Install/Core/Windows_Install_Core.ps1 | powershell
Notes:
- This will attempt to use WinGet, which comes included in Windows 11, Windows Server 2025 and latest builds of Windows 10, in order to install/update PowerShell Core.
- If WinGet is not present (for example you're running a pre-2025 Windows Server Deployment or an older Windows workstation version), the script will try to use Chocolatey instead to install PowerShell Core.
- If you'd prefer to use WinGet, you can use this other script to install it: https://github.com/gabriel-vanca/WinGet
- For workstations, Windows 10 1809+ or Windows 11 is required. For Servers, Windows Server 2012 R2 or later is required.
Open a terminal and run the following with root privileges:
sudo wget -O - https://raw.githubusercontent.com/gabriel-vanca/Arch-PowerShell/main/Install/Core/Ubuntu_Install_Core.sh | bash
Note: Version 18.04 or above is required.
Open a terminal and run the following with administrator privileges:
sudo wget -O - https://raw.githubusercontent.com/gabriel-vanca/Arch-PowerShell/main/Install/Core/MacOS_Install_Core.sh | bash
Note:
- The script requires Homebrew to be already installed.
- MacOS Big Sur 11.5 or later is required.
Open an elevated PowerShell terminal and run the following commands in order to install the necessary PowerShell modules, Oh-my-Posh and the necessary fonts.
Invoke-RestMethod https://raw.githubusercontent.com/gabriel-vanca/Arch-PowerShell/main/PowerShell/Install/Additional_Components/Install_Additional_Components.ps1 | Invoke-Expression
Open a PowerShell terminal and run the following commands.
Notes:
- On Windows you need to run this from a terminal with admin privileges.
- On Linux, make sure the command is not run from the root user as in that case the theme will only be available for the root user.
# Install Necessary Fonts
oh-my-posh font install FiraCode
# Install Oh-my-Posh Theme
The following fonts that were designed for coding and terminal usage will be installed automatically.