Last active
March 26, 2020 07:36
-
-
Save jzi96/3dba5ea522fe0d0c369a4221cd1fad23 to your computer and use it in GitHub Desktop.
Small excerp from scott h. guide for WSL https://www.hanselman.com/blog/HowToMakeAPrettyPromptInWindowsTerminalWithPowerlineNerdFontsCascadiaCodeWSLAndOhmyposh.aspx This is for Powershell as well as WSL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//REM Git for Windows + | |
//+++ FOR POWERSHELL +++ | |
Install-Module posh-git -Scope CurrentUser | |
Install-Module oh-my-posh -Scope CurrentUser | |
//? | |
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck | |
notepad $PROFILE | |
//Add next lines | |
//Import-Module posh-git | |
//Import-Module oh-my-posh | |
//Set-Theme Paradox | |
//+++ FOR WSL +++ | |
sudo apt-get udpate | |
sudo apt install golang-go | |
go get -u github.com/justjanne/powerline-go | |
vim ~/.bashrc | |
//add next lines | |
//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 | |
// +++ FONT FIX windows terminal +++ | |
//wget https://github.com/microsoft/cascadia-code/releases?WT.mc_id=-blog-scottha | |
//dl cascadiapl then install | |
//open wsl settings (json file) (%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\profiles.json) | |
//add in default section "fontFace": "Cascadia Code PL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment