3 ms·
Alternatively, if you simply wish to occasionally bring Copilot into your shell, you should know that Ctrl+X Ctrl+E (on bash) / Alt+E (on fish) will open your c
by hiAndrewQuinn 3y ago
Alternatively, if you simply wish to occasionally bring Copilot into your shell, you should know that Ctrl+X Ctrl+E (on bash) / Alt+E (on fish) will open your current shell line up in $EDITOR, which you may set to Vim or Neovim.
From there, :wq will drop the text back into your command line. If you have Copilot set up in either of those, then it will also work here.
I know from working on https://github.com/hiAndrewQuinn/shell-bling-ubuntu https://github.com/hiAndrewQuinn/shell-bling-ubuntu that Neovim's LazyVim setup now supports Copilot out of the box now. I never had much trouble setting up the Vim plugin either. YMMV.
- lloeki 3y agoIf using bash in vi mode instead of emacs mode: ESC v. zsh starts minimal, so one needs the following for such a feature to be operational: # enable autoload edit-command-line zle -N edit-command-line # bash-like emacs mode shortcut bindkey "^X^E" edit-command-line # bash-like vi mode shortcut bindkey -M vicmd v edit-command-line