Instructions taken from: https://www.thecloudadmin.eu/post/2020-0101-windowsterminal/ for configuring windows terminal Instructions taken from: https://windowsloop.com/add-open-windows-terminal-here-option-to-right-click-menu to configure Open Here in Explorer. Oh my posh has been updated to no longer use the powershell module... https://ohmyposh.dev/docs/installation/windows
- Windows Terminal from the Microsoft Store
- Run the following commands:
Install-Module posh-git -Scope CurrentUser -Force
Install-Module oh-my-posh -Scope CurrentUser -Force
Install-Module -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck
- To Update:
Update-Module -Name oh-my-posh
- Update $profile
if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
notepad $PROFILE
- With the following content:
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme blueish
Import-Module posh-git
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\blueish.omp.json" | Invoke-Expression
-
Install the following:
sudo apt install golang-go go get -u github.com/justjanne/powerline-go
-
Update your
~/.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
-
Run the following command to install font:
choco install cascadiacode choco install cascadiamono choco install cascadiacodepl choco install cascadiamonopl
-
Set
fontFace
in settings of Windows Terminal toCascadia Code PL
-
Update Visual Studio Code Settings:
"git.enableSmartCommit": true, "git.confirmSync": false, "editor.accessibilitySupport": "off", "editor.fontFamily": "'Cascadia Code PL', Consolas, 'Courier New', monospace", "editor.fontLigatures": true, "terminal.integrated.fontFamily": "'Cascadia Code PL'", "terminal.integrated.shell.windows": "C:\\Program Files\\PowerShell\\6\\pwsh.exe"
-
Update Windows Terminal Settings by setting:
"startingDirectory": "."
-
Create a text file named openHere.reg
-
Edit the text file with the following values (Be sure to set your correct
<UserName>
):Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\wt] @="Open Windows Terminal here" [HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command] @="C:\\Users\\<UserName>\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"
-
Double click on
openHere.reg
to add it to windows registery.
- Create the directory
%USERPROFILE%/AppData/Local/WTerminal
. - Download offical icon into the new
WTerminal
directory namedterminal.ico
. - Open "Registery Editor".
- Navigate to the
HKEY_CLASSES_ROOT\Directory\Background\shell\wt
key. - Create a new String Value with the name
Icon
and the value set to the path%USERPROFILE%/AppData/Local/WTerminal/terminal.ico