An open API service indexing awesome lists of open source software.

https://github.com/HoussemDellai/powershell-autocomplete

Configures powershell to auto-complete commands based on the history
https://github.com/HoussemDellai/powershell-autocomplete

Last synced: 5 months ago
JSON representation

Configures powershell to auto-complete commands based on the history

Awesome Lists containing this project

README

        

# powershell-autocomplete
Configures powershell to auto-complete commands based on the history

```powershell
$powershellProfile=@"
# 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

Import-Module posh-git

Import-Module PSReadLine
Set-PSReadLineOption -colors @{ Default = "Green"}
Set-PSReadLineOption -colors @{ Parameter = "Blue"}
Set-PSReadLineOption -colors @{ Command = "Magenta"}

function prompt {
" $ "
}

Import-Module Terminal-Icons

Clear

pwd

"@

$powershellProfile > $PSHOME\Profile.ps1
```