Skip to content

Instantly share code, notes, and snippets.

@brothertao
Last active April 28, 2024 03:23
Show Gist options
  • Save brothertao/81b471bf0b79a79e73c64189a212be1a to your computer and use it in GitHub Desktop.
Save brothertao/81b471bf0b79a79e73c64189a212be1a to your computer and use it in GitHub Desktop.
windows开发环境配置

开发环境

windows

  • 安装msys2/e/jamit/sdk
  • 初始话脚本如下
sed -i "s#https\?://mirror.msys2.org/#https://mirrors.tuna.tsinghua.edu.cn/msys2/#g" /etc/pacman.d/mirrorlist*
pacman -Syu --noconfirm
pacman -S rsync openssh vim git  --noconfirm

  • 修改目录
  • 开启sshd服务
ssh-keygen -A
/bin/sshd
  • 安装 python3.12 到/e/jamit/sdk

  • echo 'PATH=/d/p/python/python312:$PASTH' >> ~/.bashrc

  • 终端vim操作模式(可选)echo 'set -o vi' >> ~/.bashrc

vscode

  • F1 -> open user settings json
  "terminal.integrated.defaultProfile.windows": "mysys2-mingw64",
  "terminal.integrated.profiles.windows": {
    "mysys2-mingw64": {
      "path": "e:\\jamit\\sdk\\msys64\\msys2_shell.cmd",
      "icon": "terminal-bash",
      "args": [
        "-full-path",
        "-defterm",
        "-here",
        "-no-start",
        "-msys"
      ],
    }
  },
  "git.path": "E:/jamit/sdk/msys64/usr/bin/git.exe",
  • editerm
  • F1 -> open keyboard shortcuts json
  {
    "key": "e e",
    "command": "editerm.runlinecode",
    "when": "editorTextFocus && inputFocus && vim.mode == 'Normal'"
  },
  • vim
  • IntelliJ IDEA Keybindings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment