/dotfiles

dotfiles by yutotnh

Primary LanguageShellMIT LicenseMIT

dotfiles

Install

git clone https://github.com/yutotnh/dotfiles.git
cd dotfiles
sudo true
./install.sh
exec bash -l

Update

cd ${DOTFILES_DIRECTORY}
git pull
${DOTFILES_DIRECTORY}/install.sh
exec bash -l

Uninstall

${DOTFILES_DIRECTORY}/uninstall.sh
exec bash -l

補足

WSL 使用時に dotfiles/bashrc.sh の実行が遅くなる

解決法

/etc/wsl.conf に以下を書き込み、ホストのWindowsを再起動する

[interop]
appendWindowsPath = false

理由

WSLのデフォルト設定だと Windows の PATH を引き継いでいる

dotfiles/bashrc.sh 内の bash_completion.sh を実行する箇所でインストールされていないコマンドを探索するときにWindowsのPATHも見ている

WSLからWindowsのディレクトリへのアクセスは非常に遅く、そしてPATHの中に非常にたくさんアクセスしているため実行時間が遅くなっている