Windows Subsystem for Linux (WSL) を Windows 10 にインストールする | Microsoft Docsを読んでやった。
おおむね問題無かったがWindows Terminalのアイコンがペンギンで、ググっても良い方法にたどり着くことができずubuntu.ico.zipをダウンロードして対処したのでもやもやしている。
最初に
sudo apt update && sudo apt upgrade
sudo apt install build-essential
sudo update-alternatives --config editor
Homebrew
UbuntuというかDebian系でaptを使っていると最新のバージョンを使いたいソフトウェアの管理が大変でちょっとなーって思っていたがHomebrewがLinux対応してもうそれなりに経ち問題なく使える様子。
ソフトウェアの検索にはHomebrew Formulaeが便利。
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) brew analytics off brew install bat git-delta fd fish fzf ghq git lsd node ripgrep starship tmux yarn
dotfiles
ghq get ebith/dotfiles cd ghq/github.com/ebith/dotfiles ./create_link.py .config .gitconfig .tmux.conf .vim mkdir -p ~/.vimlocal/{backup,swap,undo} echo "/home/linuxbrew/.linuxbrew/bin/fish" | sudo tee -a /etc/shells chsh -s $(which fish) exec -l fish fisher rm ~/.bash* ~/.profile ~/.sudo_as_admin_successful ~/.wget-hsts
ssh
同じマシンだし鍵共有でも良いよな?
cp -r (wslpath -u (wslvar userprofile)'\.ssh') ~/ chmod 644 ~/.ssh/config ~/.ssh/id_ed25519.pub chmod 600 ~/.ssh/id_ed25519