This guide will help you set up a coding environment on both Linux and macOS systems.
-
Run the Setup Script:
For Linux, execute the
linux.sh
script:./linux.sh
For macOS, execute the
mac.sh
script:./mac.sh
These scripts will install Neovim, tmux, and other necessary packages.
-
Install Neovim Plugins:
Trigger the installation of Neovim plugins by opening Neovim:
nvim somefile
Within Neovim, run the following command to synchronize the plugins:
:PackerSync
Wait for the process to complete before exiting Neovim.
-
Reload tmux Configuration:
Start or attach to a tmux session:
tmux
Inside the tmux session, reload the configuration:
Ctrl+b :source ~/.tmux.conf
(Note: The default prefix key in tmux is
Ctrl+b
, unless you have customized it toCtrl+a
or another combination.) -
Install tmux Plugins:
Install the plugins specified in
.tmux.conf
:Ctrl+b I
This command will download and apply the tmux plugins.
-
Authenticate GitHub Copilot CLI:
Run the following command to authenticate the GitHub Copilot CLI:
github-copilot-cli auth
Follow the prompts to complete the authentication process.
-
Configure GitHub Copilot in Zsh:
Add the GitHub Copilot CLI alias to your
.zshrc
and source it:echo 'eval "$(github-copilot-cli alias -- "$0")"' >> ~/.zshrc && source ~/.zshrc
After completing these steps, your coding environment, including Neovim, tmux, and GitHub Copilot, should be fully configured and ready for use. Customize your linux.sh
or mac.sh
, .tmux.conf
, and Neovim configuration files as needed to tailor the environment to your preferences.