A light configuration to give a little style and accessories to the windows terminal
This guide is practically a copy and paste from "Anup Aglawe" guide you can see this at the end of this repository in the credits section
- Install windows terminal via microsoft store or via chocolatey
choco install microsoft-windows-terminal
- Open windows powershell and install the following modules (they will allow us to use special icons from the font)
Install-Module posh-git -Scope CurrentUser Install-Module oh-my-posh -Scope CurrentUser
(optional) (This other module will allow us to color text, it is in case we want to make a welcome message that will be displayed every time we start the terminal)Install-Module -Name PSWriteColor
- In order for the icons to load properly we need a patched font, I personally use LiterationMono Nerd Font but you could use any font from nerd fonts (if this is the case, you need to change this line of code from settings.json to use whatever font you want)
"fontFace": "name of the font",
Important, if you are going to copy something from this configuration you will have to replace all the "guid" with yours
Now you have to enter the configuration file of windows terminal. The easiest way is opening it from the menu
or if that doesn't work you can try going to this route (which is probably not the same)C:\Users\ttuna\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState
Now what remains would be to replace certain fields with your custom settings
For example:
"guid": "{guid1}",
with your personal guid1
"guid": "{guid2}",
with your personal guid1
"guid": "{guid3}",
with your personal guid1
"name": "EXAMPLENAME",
with a name that you want to give your terminal
"icon": "C:\PATH\TO\YOUR\ICON",
path to an icon that you want to put
"backgroundImage": "C:\PATH\TO\YOUR\BACKGROUNDIMAGE",
path to an background image that you want to put
"startingDirectory": "C:\PATH\TO\YOUR\STARTINGDIRECTORY"
path in which the terminal is going to start
And that would be the whole terminal part, for the powershell it is easy, just replace the settings that should have been created in the following path
C:\Users\ttuna\Documents\WindowsPowerShell
now test that everything works correctly, if you get a problem with the scripts do the following open a powershell with administrator permissions and run the following code:
Set-ExecutionPolicy RemoteSigned -Force
now press windows key + r or just type "Run Program Or File" and run the following code
gpedit.msc
that would have to open a window, then follow the next steps (sorry if it's in spanish)
Personally most of the time I use the terminal with vim, that's why I have some changed keyboard shortcuts, you can configure your own in the settings.json file to get the maximum potential from the terminal, more info here, mine are the following:
- Ctrl+Shift+C to copy
line:
{ "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+shift+c" },
- Ctrl+Shift+V to paste
line:
{ "command": "paste", "keys": "ctrl+shift+v" },
- Anup Aglawe
- to the owners of the image