mirror of
https://github.com/JG2401/PowerShellProfiles.git
synced 2026-08-29 04:30:08 +00:00
small improvements
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
Import-Module -Name Terminal-Icons
|
Import-Module -Name Terminal-Icons
|
||||||
|
|
||||||
#Oh My Posh
|
#Oh My Posh
|
||||||
oh-my-posh init pwsh --config 'C:\Users\jonas\AppData\Local\Programs\oh-my-posh\themes\M365Princess.omp.json' | Invoke-Expression
|
oh-my-posh init pwsh --config '%USERPROFILE%\AppData\Local\Programs\oh-my-posh\themes\M365Princess.omp.json' | Invoke-Expression
|
||||||
|
|
||||||
#PSReadLine
|
#PSReadLine
|
||||||
Import-Module PSReadLine #Needed to run the command below
|
Import-Module PSReadLine #Needed to run the command below
|
||||||
|
|||||||
22
README.md
22
README.md
@@ -2,14 +2,18 @@
|
|||||||
|
|
||||||
## Plugins
|
## Plugins
|
||||||
|
|
||||||
### [Nerd-Fonts](https://github.com/ryanoasis/nerd-fonts)
|
### [Terminal-Icons](https://github.com/devblackops/Terminal-Icons)
|
||||||
|
|
||||||
Displays the icons you can see on the right-hand side
|
Displays the icons you can see on the right-hand side
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
> :exclamation: Important: You must also install [Nerd-Fonts](#nerd-fonts).
|
||||||
|
|
||||||
|
### [Nerd-Fonts](https://github.com/ryanoasis/nerd-fonts)
|
||||||
|
|
||||||
For installation do the following
|
For installation do the following
|
||||||
- download a font you like from [GitHub](https://github.com/ryanoasis/nerd-fonts/releases)
|
- download a font you like from [GitHub](https://github.com/ryanoasis/nerd-fonts/releases). I use [FiraCode](https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/FiraCode.zip).
|
||||||
- unzip the files
|
- unzip the files
|
||||||
- select all ttf-files, right-click and choose 'Install' or 'Install for all users'
|
- select all ttf-files, right-click and choose 'Install' or 'Install for all users'
|
||||||
- then you can select the font in Windows Terminal in the appearance-settings
|
- then you can select the font in Windows Terminal in the appearance-settings
|
||||||
@@ -22,9 +26,14 @@ Changes the path display to the following
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
There are several themes you can select from [GitHub](https://github.com/JanDeDobbeleer/oh-my-posh/tree/main/themes). I use [M365Princess](https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/themes/M365Princess.omp.json).
|
There are several themes you can select from [GitHub](https://github.com/JanDeDobbeleer/oh-my-posh/tree/main/themes). I use [M365Princess](https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/themes/M365Princess.omp.json). You can find them after installation in ``` %USERPROFILE%\AppData\Local\Programs\oh-my-posh\themes ```
|
||||||
|
|
||||||
For installation check the [official installation guide](https://ohmyposh.dev/docs/installation/windows).
|
For installation run
|
||||||
|
```
|
||||||
|
winget install JanDeDobbeleer.OhMyPosh -s winget
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also take a look at the [official installation guide](https://ohmyposh.dev/docs/installation/windows).
|
||||||
|
|
||||||
|
|
||||||
### [PSReadLine](https://github.com/PowerShell/PSReadLine)
|
### [PSReadLine](https://github.com/PowerShell/PSReadLine)
|
||||||
@@ -33,8 +42,9 @@ Shows you suggestions and/or your history if you wish
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
For installation run as administrator
|
||||||
```
|
```
|
||||||
Install-Module PSReadLine
|
Install-Module PSReadLine -Force
|
||||||
```
|
```
|
||||||
|
|
||||||
For this representation you need ``` Set-PSReadLineOption -PredictionSource History ``` and ``` Set-PSReadLineOption -PredictionViewStyle ListView ```.
|
For this representation you need ``` Set-PSReadLineOption -PredictionSource History ``` and ``` Set-PSReadLineOption -PredictionViewStyle ListView ```.
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Reference in New Issue
Block a user