When using Raspberry Pi OS Desktop, in the accessories menu there is an option to run a Text Editor. This is a simple editor which opens in a window like a normal application. It allows use of the mouse and keyboard, and has tabs and syntax highlighting. Set Cascadia Code PL as your font. To set the Cascadia Code PL font for use with PowerLine (after downloading, unzipping, and installing on your system), you will need to open your profile settings in your settings.json file by selecting Settings (Ctrl+,) from your Windows Terminal dropdown menu. This can also be done using the settings UI if you have it enabled.
-->Powerline provides a customized command prompt experience providing Git status color-coding and prompts.
Best Text Editor For Programming
In this tutorial, you learn how to:
- Set up Powerline in PowerShell
- Set up Powerline in Ubuntu/WSL
- Add missing Powerline glyphs
Prerequisites
Install a Powerline font
Powerline uses glyphs in order to style the prompt. If your font does not include Powerline glyphs, you may see several Unicode replacement characters '▯' throughout your prompt. Though Cascadia Mono does not include Powerline glyphs, you can install Cascadia Code PL or Cascadia Mono PL, which have the Powerline glyphs included. These fonts can be installed from the Cascadia Code GitHub releases page.
Set up Powerline in PowerShell
PowerShell prerequisites
If you don't already have it, install Git for Windows.
Using PowerShell, install Posh-Git and Oh-My-Posh:
Tip The final cut 1996 download.
You may need to install NuGet if you don't already have it. Your PowerShell command line will ask if you want to install NuGet if this is the case. Select [Y] Yes. You may also need to approve that you are installing modules from PSGallery, an 'untrusted repository'. Select [Y] Yes.
Posh-Git adds Git status information to your prompt as well as tab-completion for Git commands, parameters, remotes, and branch names. Oh-My-Posh provides theme capabilities for your PowerShell prompt.
If you are using PowerShell Core, install PSReadline:
PSReadline lets you customize the command line editing environment in PowerShell.
Customize your PowerShell prompt
Open your PowerShell profile with notepad $PROFILE
or the text editor of your choice. This is not your Windows Terminal profile. Your PowerShell profile is a script that runs every time PowerShell starts. Learn more about PowerShell profiles.
In your PowerShell profile, add the following to the end of the file:
Now, each new instance starts by importing Posh-Git and Oh-My-Posh, then setting the Paradox theme from Oh-My-Posh. Oh-My-Posh comes with several built-in themes. If you decide to use Cascadia Code PL as a font, oh-my-posh themes that contain minimal
function without the need for additional icons. You can also create a custom theme to match the font of your choice.
Important
Script execution policy must be set to either RemoteSigned or Unrestricted in order for the profile script to run. Run this command to see your current execution policy Get-ExecutionPolicy
. Learn more about Execution Policies Org 2019 pc download.
Set Cascadia Code PL as your font
To set the Cascadia Code PL font for use with PowerLine (after downloading, unzipping, and installing on your system), you will need to open your profile settings in your settings.json file by selecting Settings (Ctrl+,) from your Windows Terminal dropdown menu. This can also be done using the settings UI if you have it enabled.
Once your settings.json file opens, find the Windows PowerShell profile and add: 'fontFace': 'Cascadia Code PL'
to designate Cascadia Code PL as the font. This will provide those nice Cascadia Code Powerline glyphs. You should notice the change in your terminal as soon as you select Save in your editor.
Your Windows PowerShell profile settings.json file should now look like this:
Text Editor Download
Tip
If you also use the integrated terminal in Visual Studio Code, you should add 'terminal.integrated.fontFamily': 'Cascadia Code PL'
to your Visual Studio Code settings to make sure Powerline works there as well.
Set up Powerline in WSL Ubuntu
Linux Best Terminal Text Editors
WSL Ubuntu prerequisites
Ubuntu has several Powerline options to install from. This tutorial will be using oh-my-posh for Linux:
First, install oh-my-posh:
When using Raspberry Pi OS Desktop, in the accessories menu there is an option to run a Text Editor. This is a simple editor which opens in a window like a normal application. It allows use of the mouse and keyboard, and has tabs and syntax highlighting. Set Cascadia Code PL as your font. To set the Cascadia Code PL font for use with PowerLine (after downloading, unzipping, and installing on your system), you will need to open your profile settings in your settings.json file by selecting Settings (Ctrl+,) from your Windows Terminal dropdown menu. This can also be done using the settings UI if you have it enabled.
-->Powerline provides a customized command prompt experience providing Git status color-coding and prompts.
Best Text Editor For Programming
In this tutorial, you learn how to:
- Set up Powerline in PowerShell
- Set up Powerline in Ubuntu/WSL
- Add missing Powerline glyphs
Prerequisites
Install a Powerline font
Powerline uses glyphs in order to style the prompt. If your font does not include Powerline glyphs, you may see several Unicode replacement characters '▯' throughout your prompt. Though Cascadia Mono does not include Powerline glyphs, you can install Cascadia Code PL or Cascadia Mono PL, which have the Powerline glyphs included. These fonts can be installed from the Cascadia Code GitHub releases page.
Set up Powerline in PowerShell
PowerShell prerequisites
If you don't already have it, install Git for Windows.
Using PowerShell, install Posh-Git and Oh-My-Posh:
Tip The final cut 1996 download.
You may need to install NuGet if you don't already have it. Your PowerShell command line will ask if you want to install NuGet if this is the case. Select [Y] Yes. You may also need to approve that you are installing modules from PSGallery, an 'untrusted repository'. Select [Y] Yes.
Posh-Git adds Git status information to your prompt as well as tab-completion for Git commands, parameters, remotes, and branch names. Oh-My-Posh provides theme capabilities for your PowerShell prompt.
If you are using PowerShell Core, install PSReadline:
PSReadline lets you customize the command line editing environment in PowerShell.
Customize your PowerShell prompt
Open your PowerShell profile with notepad $PROFILE
or the text editor of your choice. This is not your Windows Terminal profile. Your PowerShell profile is a script that runs every time PowerShell starts. Learn more about PowerShell profiles.
In your PowerShell profile, add the following to the end of the file:
Now, each new instance starts by importing Posh-Git and Oh-My-Posh, then setting the Paradox theme from Oh-My-Posh. Oh-My-Posh comes with several built-in themes. If you decide to use Cascadia Code PL as a font, oh-my-posh themes that contain minimal
function without the need for additional icons. You can also create a custom theme to match the font of your choice.
Important
Script execution policy must be set to either RemoteSigned or Unrestricted in order for the profile script to run. Run this command to see your current execution policy Get-ExecutionPolicy
. Learn more about Execution Policies Org 2019 pc download.
Set Cascadia Code PL as your font
To set the Cascadia Code PL font for use with PowerLine (after downloading, unzipping, and installing on your system), you will need to open your profile settings in your settings.json file by selecting Settings (Ctrl+,) from your Windows Terminal dropdown menu. This can also be done using the settings UI if you have it enabled.
Once your settings.json file opens, find the Windows PowerShell profile and add: 'fontFace': 'Cascadia Code PL'
to designate Cascadia Code PL as the font. This will provide those nice Cascadia Code Powerline glyphs. You should notice the change in your terminal as soon as you select Save in your editor.
Your Windows PowerShell profile settings.json file should now look like this:
Text Editor Download
Tip
If you also use the integrated terminal in Visual Studio Code, you should add 'terminal.integrated.fontFamily': 'Cascadia Code PL'
to your Visual Studio Code settings to make sure Powerline works there as well.
Set up Powerline in WSL Ubuntu
Linux Best Terminal Text Editors
WSL Ubuntu prerequisites
Ubuntu has several Powerline options to install from. This tutorial will be using oh-my-posh for Linux:
First, install oh-my-posh:
The second step is optonal. Oh-my-posh can use the same theme config regardless of the shell or evironment, so if you're already usingit on Windows Powershell for example, you can reuse that theme configuration rather than download the themes.If you plan to use it within Ubuntu WSL only, fetch the themes so you can get started right away:
Tip
If you're using Ubuntu 18.04 or 16.04, you'll need to first install the correct version of golang:
Notepad++ Free Download
Customize your Ubuntu prompt
Linux Text Editor
Open your ~/.bashrc
file with nano ~/.bashrc
or the text editor of your choice. This is a bash script that runs every time bash starts. Add the following (change the theme to the one you like):