Kurulum
Powershell 7'yi kurdum
Ayarlar
PSReadline etkin olarak gelmiyor. Önce halihazırda profile yoksa bir tane oluşturmak lazım. Şöyle yaparız
if (!(Test-Path -Path $PROFILE)) {New-Item -ItemType File -Path $PROFILE -Force}
Profile dosyasını açmak için şöyle yaparız
notepad $PROFILE
Dosyaya şu satırları ekleriz
Import-Module PSReadLine
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -HistoryNoDuplicates
Set-PSReadLineOption -Colors @{InlinePrediction = 'DarkGreen' }
# Browse history
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward- Böylece "sağ ok" ile önerileri kabul ederiz
- Yukarı ve aşağı ok ile tarihçeyi dolaşırız