sudo apt update
sudo apt-get install build-essential curl file git
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
brew --versionbrew install zsh
echo `which zsh` | sudo tee -a /etc/shells
chsh -s `which zsh`git clone https://github.com/LorseKudos/dotfiles.git
mv dotfiles .dotfiles && cd .dotfiles
zsh setup.shcat << 'EOS' | sudo tee -a /etc/wsl.conf
[interop]
appendWindowsPath = false
EOS設定の反映にはWSLを再起動が必要(powershellでwsl --shutdown)
https://amaya382.hatenablog.jp/entry/2019/12/27/120057
ssh-keygen -t rsa -b 4096 -C "wsl"
cat << 'EOS' | sudo tee -a ~/.ssh/config
AddKeysToAgent yes
Host github
HostName github.com
IdentityFile ~/.ssh/id_rsa
User git
EOS
cat ~/.ssh/id_rsa.pub | pbcopy
# ブラウザでgithubに公開鍵登録
ssh -T git@github.comhttps://dk521123.hatenablog.com/entry/2020/12/10/094125
- Docker Disktopを開き、
設定アイコン > Resources > WSL INTERRATIONを選択 Enable integration with additional distros:配下にあるUbuntuをONにするApply & Restartボタン押下- Ubuntu上で
docker --versionを実行
何をインストールしてたかは残っている。毎回手動でインストールして取捨選択すべきじゃない?
- Homebrewのインストール
brew cask Dropbox./setup.sh
MACのUSキーボードのcommandキーを英数・かなキーに変更する
超便利!10個以上コピーを記憶してくれるMacアプリ【Clipy(クリッピー)】
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finderbrew caskでインストールできるものはそっちでやろう!
- GoogleChrome
- Google日本語入力
- Slack
- LINE
- Dropbox
- インストール
brew cask install visual-studio-code- Settings Syncで設定のリストア
Visual Studio Code の設定を共有・バックアップする
Visual Studio Codeで設定ファイル・キーバインディング・拡張機能を共有する
- インストール
brew install vim --with-override-system-vi最強の dotfiles 駆動開発と GitHub で管理する運用方法
- Xcode Command-Line Tool をインストール
xcode-select --install- Homebrewのインストール
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"- インストールの確認
brew doctormacOSでの開発環境を全部Docker化したらリストア時間が1時間半になった
iTerm2の導入方法&初期設定や使い方まとめ iTerm2
- インストール
brew install git
git --version- SSH鍵の作成
ssh-keygen -t rsa- ~/.ssh/configに接続設定を追加
vim ~/.ssh/config# global setting for macOS Sierra
Host *
AddKeysToAgent yes
UseKeychain yes
Host github
HostName github.com
IdentityFile ~/.ssh/id_rsa
Port 22
User git
- 属性変更
cd ~/.ssh
chmod 600 id_rsa- ssh-agentに秘密鍵を登録
eval `ssh-agent`
ssh-add ~/.ssh/id_rsa
ssh-add -l
- 確認
ssh -T git@github.com
ssh github新しいMacでGitHubのSSH接続をするまでの環境構築手順
- インストール
brew install docker
brew cask install docker- Dockerの起動
open /Applications/Docker.app- インストール
brew install mysql --client-only- インストール
brew install direnv- 設定を追記
echo 'eval "$(direnv hook bash)"' >> ~/.zshrc- goenvのインストール
git clone https://github.com/syndbg/goenv.git ~/.goenv- 環境変数の設定
echo 'export GOENV_ROOT="$HOME/.goenv"' >> ~/.zshrc
echo 'export PATH="$GOENV_ROOT/bin:$PATH"' >> ~/.zshrc- インストール
goenv install -l
goenv install 1.12
goenv versions
goenv global 1.12- 確認
go version- pyenvのインストール
brew install pyenv
- パスを通す
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
source ~/.zshrc- 起動確認
pyenv- 特定のバージョンをインストール
pyenv install -l
pyenv install 3.7
pyenv versions
pyenv global 3.7
pyenv --version