Skip to content

Commit 3daf0e8

Browse files
committed
Update winstuff.md
1 parent 51718a1 commit 3daf0e8

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

operating-systems/windows/winstuff.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,93 @@ schtasks /Change /TN "\Microsoft\Windows\Windows Error Reporting\QueueReporting"
245245

246246
- Install Italian Dev keyboard - [https://github.com/linuxiamo/devs-kb-layout-ita](https://github.com/linuxiamo/devs-kb-layout-ita) - and setup in **Time & language - Language & region - Options - Keyboards**
247247

248+
### Windows Terminal Mod
249+
250+
Install [Windows Terminal](https://learn.microsoft.com/en-us/windows/terminal/install) via Microsoft Store
251+
252+
- Open Windows Terminal and go to the **Settings** UI window.
253+
- Select **Startup** and choose "Windows Terminal" as the **Default terminal application** setting.
254+
255+
Install [Powershell](https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-windows)
256+
257+
```powershell
258+
winget install --id Microsoft.PowerShell --source winget
259+
```
260+
261+
Install [OhMyPosh](https://ohmyposh.dev/docs/installation/windows)
262+
263+
```powershell
264+
winget install JanDeDobbeleer.OhMyPosh --source winget
265+
266+
# Automated upgrade
267+
oh-my-posh enable upgrade
268+
```
269+
270+
Configure OhMyPosh
271+
272+
- [Font](https://ohmyposh.dev/docs/installation/fonts)
273+
274+
```powershell
275+
oh-my-posh font install JetBrainsMono
276+
```
277+
278+
Configure **Windows Terminal** to use the installed font
279+
280+
- shortcut `CTRL + SHIFT + ,` to open the `settings.json` file
281+
- add the following attribute
282+
283+
```json
284+
"profiles": {
285+
"defaults": {
286+
"font": {
287+
"face": "JetBrainsMono NF"
288+
}
289+
}
290+
```
291+
292+
- [Prompt](https://ohmyposh.dev/docs/installation/prompt)
293+
294+
```powershell
295+
oh-my-posh get shell
296+
pwsh
297+
298+
New-Item -Path $PROFILE -Type File -Force
299+
300+
notepad $PROFILE
301+
# Add the following snippet as the last line
302+
303+
oh-my-posh init pwsh | Invoke-Expression
304+
305+
. $PROFILE
306+
```
307+
308+
- [Customize](https://ohmyposh.dev/docs/installation/customize) and [configuration](https://ohmyposh.dev/docs/configuration/general)
309+
- To set a new configuration or theme you need to change the `--config` option of the `oh-my-posh init <shell>` line in your `profile` script
310+
311+
```powershell
312+
notepad $PROFILE
313+
314+
# e.g. Theme
315+
oh-my-posh init pwsh --config 'pure' | Invoke-Expression
316+
317+
. $PROFILE
318+
```
319+
320+
Install [fastfetch](https://github.com/fastfetch-cli/fastfetch)
321+
322+
```powershell
323+
winget install fastfetch
324+
325+
# Add to PS profile
326+
notepad $PROFILE
327+
# Add the command and the end of the file and save
328+
fastfetch
329+
330+
. $PROFILE
331+
```
332+
333+
334+
248335
------
249336

250337
## CMD commands

0 commit comments

Comments
 (0)