Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: hx cli command autocomplete support for powershell, just like lsd project. #11989

Open
Zerorigin opened this issue Nov 3, 2024 · 0 comments
Labels
C-enhancement Category: Improvements

Comments

@Zerorigin
Copy link

# Add this script block into $PROFILE file.
Get-ChildItem -Path 'D:\DevOps\Bin\autocomplete\' | ForEach-Object { . $_.FullName }
Set-PSReadLineKeyHandler -Key Tab -Function Complete
Set-PSReadlineKeyHandler -Key Ctrl+g -Function MenuComplete

Copy script file (autocomplete.ps1) to the above directory ('D:\DevOps\Bin\autocomplete' ).
Eventually, it will be possible to use the command prompts.

Demonstration:
image

https://github.com/lsd-rs/lsd

@Zerorigin Zerorigin added the C-enhancement Category: Improvements label Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

1 participant