many changes

This commit is contained in:
2025-04-28 10:31:47 +08:00
parent bbced64364
commit f803a27418
5 changed files with 50 additions and 9 deletions

View File

@@ -1,10 +1,33 @@
# Install `PSReadLine`
Execute following the instruction in powershell to install `PSReadLine` and enable `IntelliSense`
```powershell
Install-Module -Name PSReadLine -AllowClobber -Force
Set-PSReadLineOption -PredictionSource History
```
# Emacs mode
Add the following line into `$PROFILE`
```powershell
Set-PSReadLineOption -EditMode Emacs
```
# Command Not Found
Add the following line into `$PROFILE`
```powershell
Import-Module -Name Microsoft.WinGet.CommandNotFound
```
# Starship
Create symbolic link `$HOME\.config\starship.toml` point to `$HOME\.TerminalPolyjuice\starship\starship.toml`
```powershell
New-Item -ItemType SymbolicLink -Path "$HOME\.config\starship.toml" -Target "$HOME\.TerminalPolyjuice\starship\starship.toml"
```
# Oh-My-Posh
Copy *.omp.json to `$env:POSH_THEMES_PATH`
Edit $PROFILE and add `oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/powerlevel10k_rainbow_eip.omp.json" | Invoke-Expression` at the top.
# Command Not Found
Import-Module -Name Microsoft.WinGet.CommandNotFound
Edit $PROFILE and add
```powershell
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/powerlevel10k_rainbow_eip.omp.json" | Invoke-Expression
```
at the top.