“Assomple automatique de PowerShell” Réponses codées

PowerShell assorti automatique

# Run the new pwrsh.exe as admin

# Install aucomplete addon
Install-Module -Name PSReadLine -AllowPrerelease

# Open the profile with an editor (e.g. Notepad)
notepad $PROFILE

# *If it throws an error, create the file:
New-Item -Path $PROFILE -Type File -Force

# Paste into file:
# Make addon listen to history
Set-PSReadLineOption -PredictionSource History

# Shows navigable menu of all options when hitting Tab
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete

# Autocompletion for arrow keys
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward

# Restart the powershell with new data:
. $PROFILE
T-DaMER

Assomple automatique de PowerShell

# Shows navigable menu of all options when hitting Tab
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete

# Autocompletion for arrow keys
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
johannb75

PowerShell AutoCletion

# Shows navigable menu of all options when hitting Tab

Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
Spencer Naugler

PowerShell AutoCletion

Notepad $profile
Spencer Naugler

Réponses similaires à “Assomple automatique de PowerShell”

Questions similaires à “Assomple automatique de PowerShell”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code