/NovaLinha-oh-my-posh-theme

A custom theme for beautiful customisation of your powershell. Built for oh-my-posh.

Primary LanguagePowerShell

NovaLinha Oh-my-posh Theme

A custom theme for beautiful customisation of your powershell. Built for oh-my-posh.

Table of Contents

About

Author: Luis Rita

Luis Rita's Github

Based and inspired on the Agnoster theme from oh-my-posh repo

Screenshots

No Git: Alt text

With Git synced: Alt text

With Git ut not synced or commiting: Alt text

Syntax error in command: Alt text

Command and output: Alt text

Prerequisites

This theme works with oh-my-posh. So you have to install oh-my-posh to Powershell:

  1. Install posh-git and oh-my-posh:
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
  1. Add Profile file to your PowerShell if it doesnt yet exist:
if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
notepad $PROFILE
  • Add this to your powershell profile to import the modules every time powershell runs:

    Import-Module posh-git
    Import-Module oh-my-posh
  1. Make sure to also install version 2.0.0-beta1 of PSReadLine
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force

For More info visit oh-my-posh.

Installation

  1. Download this repository to your machine
git clone https://github.com/L96Github/NovaLinha-oh-my-posh-theme.git
  1. Create the folder C:\Users\<your username>\Documents\WindowsPowerShell\PoshThemes (replace with your current username).
mkdir C:\Users\<your username>\Documents\WindowsPowerShell\PoshThemes
+ (Optional) You can also change the default location where themes are stored by changing oh-my-posh theme setting variable `$ThemeSettings.MyThemesLocation` (the folder defaults to `~\Documents\WindowsPowerShell\PoshThemes`) by running this command:

$ThemeSettings.MyThemesLocation = "<folder path to your themes>"

  1. Once the theme file is in the right folder, set NovaLinha as the theme of your powershell.
Set-Theme NovaLinha