3 ms·
Speaking of ZSH: it is the thing I miss the most in Windows (especially with ohmyzsh, and its plugins zsh-autosuggestions and zsh-syntax-highlighting). I know
by stared 6y ago
Speaking of ZSH: it is the thing I miss the most in Windows (especially with ohmyzsh, and its plugins zsh-autosuggestions and zsh-syntax-highlighting).
I know that there is oh-my-posh, but it lacks such plugins. Do you know any workaround?
- thorstenhans 6y agounfortunately not. Sorry
- deleted 6y ago[deleted]
- diarrhea 6y agoThis can get you a part of the way, extracted from my PowerShell profile: ## # PSReadLine, see https://github.com/PowerShell/PSReadLine ## ## behaviour of Tab key autocomplete Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete ## From docs: ## With these bindings, up arrow/down arrow will work like PowerShell/cmd if the ## current command line is blank. If you've entered some text though, it will ## search the history for commands that start with the currently entered text. ## ## Like zsh completion. Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward These will allow you to autocomplete previous commands from the tidpids you already types, so it no longer searches linearly through the history. I also use: Import-Module posh-git Import-Module oh-my-posh Set-Theme Agnoster
- PhilippGille 6y agoDo you happen to have your PowerShell profile in a GitHub Gist or so?
- diarrhea 6y agoNo, but mostly because it is not much longer than the above! Only got started using PowerShell more seriously (thanks to Windows Terminal and WSL) a couple of months ago. Here is the other content: # For Agnoster theme, "user@host" will be hidden if user==DefaultUser $DefaultUser = "<YOUR USERNAME>" function vim ($File){ bash -c "vim $File" } New-Alias pi ipython # git diff output uses less; it will be buggy without utf8 $env:LESSCHARSET='UTF-8' # console output, e.g, when writing git diff output to file using pipe: | Out-File [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
- markdog12 6y agoIs using WSL an option for you? I'm using oh-my-zsh with it just fine.
- stared 6y agoWithout GPU support, not much.