Created
August 22, 2025 15:04
-
-
Save schlueter/eecf15ed82f99277edd843f035f70f8e to your computer and use it in GitHub Desktop.
zsh copilot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:alpine | |
| RUN apk add --no-cache git neovim zsh | |
| RUN git clone --depth=1 https://github.com/github/copilot.vim.git \ | |
| ~/.config/nvim/pack/github/start/copilot.vim | |
| ENV EDITOR=nvim | |
| RUN cat <<@ >> ~/.zshrc | |
| autoload -z edit-command-line | |
| zle -N edit-command-line | |
| bindkey -M vicmd v edit-command-line | |
| @ | |
| CMD ["zsh"] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build and run this container with the Dockefile or using:
From the container's shell, type and you should be put into nvim. Run
:Copilot setupand hit enter. Your browser will not open as it suggests because you are in a container, this is fine. Goto https://github.com/login/device in your browser and enter the code from the nvim session in the container. Copilot should now be activated, enterfunctionand space and it should make a suggestion.