- git clone https://github.com/MarkWengSTR/win_dotfiles.git & cd win_dotfiles
- sudo sh boostrap.sh
- Zsh
- cp ~/win_dotfiles/zshrc ~/.zshrc
- Tmux
- cp ~/win_dotfiles/tmux.conf ~/.tmux.conf
- Neovim
- cd ~/.config/nvim
- cp ~/win_dotfiles/init.vim init.vim
- (如果沒有autoload資料夾的話先 mkdir autoload ) & cd autoload &
curl -fLo plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- 先下載 cmder
- 到我的dotfile中找出 cmder 裡的 user_aliases.cmd, user_profile.ps1
- 把vimrc放進 ~ 目錄
- user_aliases.cmd, user_profile.ps1 放進 C:\Users\bskin\cmder\config
- 把ohmyposhv3-will.omp.json 複製到 ~/.ohmyposhv3-will.omp.json
- 開啟powershell
- vimrc 裡 先安裝plug套件 ( 通常home目錄是C:\Users\bskin )
curl -fLo
C:\Users\bskin/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- 開啟vim, 輸入 :PlugInstall
- 以 "系統管理員身分" 進入 命令提示字元 , 輸入
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString(‘https://chocolatey.org/install.ps1‘))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
- 以 "系統管理員身分" 進入 PowerShell , 輸入
choco install neovim -y
- 在 C:\Users\bskin\AppData\Local\ 下新增 nvim/ 資料夾
- nvim/ 裡面 新增 autoload/資料夾,放入plug.vim
curl -fLo
plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
-
跳回 nvim/ ,放入 我的dotfile中裡面的init.vim
-
開啟 nvim 輸入 :PlugInstall
- Powershell in admin
$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_" };
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';
New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);
- 重開機
ssh-keygen -t ed25519 -C "bskin0330@gmail.com"
nvim .ssh/id_ed25519.pub
複製至github內ssh -T git@github.com
測試看是否有連上