You only need to set this up once.
The following example shows how to set up autocompletion for Powershell. Complete the following steps:
- Make sure you have installed the
nrfutil completioncommand withnrfutil install completion. - Run the
nrfutil completion install <name_of_shell>command for the shell you are using. For example:This produces the following output:nrfutil completion install powershellAdd the following to your $PROFILE file: # From nrfutil completion install # WARNING: nrfutil tab-completion may become slow because of Windows Defender if ( Test-Path -Path ${env:USERPROFILE}\.nrfutil\share\nrfutil-completion\scripts\powershell\setup.ps1 ) { . ${env:USERPROFILE}\.nrfutil\share\nrfutil-completion\scripts\powershell\setup.ps1 } - Manually copy the required lines to your
$PROFILEfile. You can locate it with theecho $profile. If it does not exist, create the file. - Add menu completion for powershell by adding the following line to the user shell profile:
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete - Save your profile file.
- Close and reopen the terminal.