sudo apt install git make -y && git clone https://github.com/j20232/dotfiles && cd dotfiles && make init2 && exit
make cuda && sudo reboot
-> make cudnn
- Install from https://www.msys2.org/
- Install RitchyDiminished.
- Install
git
andmake
$ pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime
$ pacman -Suy
$ pacman --needed -Syy base-devel msys2-devel git make
-
Generate a ssh key and register it at your GitHub account.
-
Clone this repository
$ cd
$ git clone git@github.com:j20232/dotfiles.git
- Change
msys64/msys2_shell.cmd
as follows
from
rem set MSYS=winsymlinks:nativestrict
rem set MSYS2_PATH_TYPE=inherit
To
set MSYS=winsymlinks:nativestrict
set MSYS2_PATH_TYPE=inherit
- Run following lines after launching
msys64/msys2_shell.cmd
with Administrator mode
$ cd $HOME/dotfiles
$ make init2
- Add following lines to
$XDG_CONFIG_HOME/local.fish
set PROG_PATH "/c/Users/****/AppData/Local/Programs" $PROG_PATH
set PYTHONROOT "PROG_PATH/Python/****" $PYTHONROOT
set PYTHONPATH "$$PYTHONROOT/Lib/site-packages" $PYTHONPATH
set PATH "$PYTHONROOT" $PATH
set PATH "$PYTHONROOT/Scripts" $PATH
- Add local
$HOME/.bashrc
export PROG_PATH=/c/Users/****/AppData/Local/Programs
export PYTHONROOT=$PROG_PATH/Python/****
export PYTHONPATH=$PYTHONPATH:$PYTHONROOT/Lib/site-packages
export PATH=$PATH:$PYTHONROOT
export PATH=$PATH:$PYTHONROOT/Scripts
- Install from https://gitforwindows.org/
- Run following commands to install pacman
git clone --depth=1 https://github.com/git-for-windows/git-sdk-64 gfw-sdk
cp gfw-sdk/usr/bin/pacman* /usr/bin/
cp -a gfw-sdk/etc/pacman.* /etc/
mkdir -p /var/lib/
cp -a gfw-sdk/var/lib/pacman /var/lib/
cp -a gfw-sdk/usr/share/makepkg/util* /usr/share/makepkg/
pacman --database --check
curl -L https://raw.githubusercontent.com/git-for-windows/build-extra/master/git-for-windows-keyring/git-for-windows.gpg \
| pacman-key --add - \
&& pacman-key --lsign-key 1A9F3986
pacman -S tmux
- Same as msys
$ make init2
$ make windows
$ Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
$ iwr -useb get.scoop.sh | iex
$ scoop install vim gibo which
$ vim $PROFILE
Add following statements to $PROFILE
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
Ref: https://stackoverflow.com/questions/40098771/changing-powershells-default-output-encoding-to-utf-8
https://chocolatey.org/install#installing-chocolatey
$ git clone git@github.com:microsoft/vcpkg.git
$ cd vcpkg
$ .\bootstrap-vcpkg.bat
git clone https://github.com/j20232/dotfiles && cd dotfiles && make init2 && exit
- Touch Bar: TouchSwitcher
- iTerm2: Preferences->Text->Font->Change Font: select "Ricty Discord Regular for Powerline"
- MKL & TBB: https://software.intel.com/en-us/mkl
Don't run on msys2
- all:
make py
- only table:
make table
- only NN:
make nn
- only util:
make pyutil
make cpp
- Install Visual Studio
- Install ninja and set the Path
@ $HOME/.bashrc
export PATH=$PATH:/c
export CC=/mingw64/bin/clang
export CXX=/mingw64/bin/clang++
- You may need to install glbinding if you develop GL-based applications.
- If you use vscode, you have to the following settings @
./vscode/settings.json
in your project
"terminal.integrated.shell.windows": "C:/msys64/usr/bin/bash.exe",
"terminal.integrated.env.windows": {
"MSYS2_PATH_TYPE": "inherit",
"MSYSTEM": "MINGW64",
"CHERE_INVOKING": "1"
},
"terminal.integrated.shellArgs.windows": [
"--login"
],
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools"
- GUI:
make gui
- ssh:
make ssh
$ git config --global user.name mocobt
$ git config --global user.email mocobt@gmail.com
$ git config --global core.editor 'vim -c'
$ git config --global color.diff auto
$ git config --global color.status auto
$ git config --global color.branch auto
$ git config --global core.precomposeunicode true
$ git config --global core.quotepath false
$ git config --global core.autocrlf input
$ git config --list
Add the following lines at $HOME/.gitconfig
(on Windows PowerShell).
[alias]
tree = log --graph --pretty=format:'%x09%C(auto) %h %Cgreen %ar %Creset%x09by"%C(cyan ul)%an%Creset" %x09%C(auto)%s %d'