Closed9
M1 Mac に powerline-shell を導入する(※powerline-goに乗り換えw)
公式のドキュメント
fontのインストール
インストールしないと文字化けする
下記 手順どおりに
# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
ターミナルのフォントを以下のフォントに設定する
powerline-shellのインストール
任意のディレクトリ
※~/
ディレクトリでやる
git clone https://github.com/b-ryan/powerline-shell
cd powerline-shell
python setup.py install
ここで権限がないとおこられる・・
--user オプションをつけてインストール
python setup.py install --user
powerline-shell
あれ・・・コマンドが・・
pathがとおってない・・?
zsh: command not found: powerline-shell
python3をインストールして pipコマンドでインストールしてみることに
参考記事
pythonのバージョン管理もあるのか・・
Pythonのインストール
以下のように非推奨らしい・・
う〜〜ん
Homebrew 経由でのインストールはやめておいたほうがいいのかw
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting powerline-shell
Downloading powerline_shell-0.7.0-py2.py3-none-any.whl (31 kB)
Collecting argparse
Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Installing collected packages: argparse, powerline-shell
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Successfully installed argparse-1.4.0 powerline-shell-0.7.0
WARNING: You are using pip version 21.3.1; however, version 22.0.4 is available.
You should consider upgrading via the '/opt/homebrew/opt/python@3.9/bin/python3.9 -m pip install --upgrade pip' command.
アンインストール
pip uninstall powerline-shell
powerline-go をいれようかな〜
このスクラップは2022/03/22にクローズされました