https://github.com/microsoft/cascadia-code/releases
- Download and open the zip
- Navigate within the ttf folder, double click
CascadiaCodePL.ttf
- Click the install button
- Open Powershell CORE
- Run the following to install the necessary modules
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck
- Open your powershell core profile page with the following (
code $PROFILE
) - Set the contents of your profile to the following
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
Set-Alias k kubectl
- Open ubuntu command prompt
- Install prereqs
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install golang-1.12
- Edit your
~/.profile
to point to the correct go binary. Open the profile withcode ~/.profile
- Add this line to the bottom
PATH="$PATH:/usr/lib/go-1.12/bin"
- Source the profile (or restart the shell) (
source ~/.profile
) - Install powerline
go get -u github.com/justjanne/powerline-go
- Edit your
.bashrc
file. Add the following to the bottom (to open it typecode ~/.bashrc
)
GOPATH=$HOME/go
function _update_ps1() {
PS1="$($GOPATH/bin/powerline-go -error $?)"
}
if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
- Open the windows store, search for
Terminal
. Install it - Open windows terminal, and open the settings json file (
Ctrl ,
) - Paste in the
settings.json
file