LoginSignup
0
0

More than 3 years have passed since last update.

gh-open not working with wsl2

Posted at

環境

wsl2 Ubuntu 20.04 LTS
wsl2 Ubuntu 18.04 LTS
上記確認済みです

:o: 解決策


# pip を使えるようにする
sudo apt-get install python3-pip
pip3 install --user --upgrade pip
echo "export PATH=\"${HOME}/.local/bin:$PATH\"" >>"${HOME}"/.zshrc

# pipでxdg-open-wslをinstall
pip install --user git+https://github.com/cpbotha/xdg-open-wsl.git

動作確認


# xdg-openの生存確認 & 動作確認
which xdg-open
xdg-open http://www.google.com

gh-openとは

https://github.com/typester/gh-open
cliからGitHub remote urlを開ける

経緯

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0