Skip to content

Latest commit

 

History

History
56 lines (56 loc) · 3.23 KB

prerequisite.md

File metadata and controls

56 lines (56 loc) · 3.23 KB

Prerequisites

wezterm:

neovim:

tmux:

nerdfonts:

lazy.nvim (plugin manager)

lazygit

lsp

ripgrep (for telescope)

color in neovim

ChatGPT

  • First method (recommended): Use gpg to encrypt secret file and pass the decrypt command to api_key_cmd in lua/chatgpt.lua
    • Bug gpg: agent_genkey failed: Timeout:
      • Run in sudo mode (not recommended).
      • From this link
        • Install sudo apt install pinentry-tty and sudo update-alternatives --config pinentry to choose pineentry-tty
    • Bug gpg: can't connect to the agent: IPC connect call failed:
      • Make sure no wrong option in ~/.gnupg/gpg-agent.conf
    • Generate key/pair : gpg --generate-key
    • Create encrypted gpg file: gpg --encrypt --output chatgpt_secret.gpg --recipient <recipient> chatgpt_secret.txt ( is the email of the recipient)
    • Decrypt file: gpg --decrypt chatgpt_secret.gpg (for local user only, otherwise must specify --local-user option)
  • Second method: Add OPENAI_API_KEY to environment variable (not recommended)

Copilot

  • Github account -> Your copilot -> Copilot in your IDE
  • Type :Copilot setup to set up copilot on a new computer

For macOS only

For Linux only