liuwb

liuwb

開発環境の構築

1、clash-prop のインストール#

ClashX.dmg

2、Wrap のインストール#

Warp.dmg

3、brew のインストール#

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

4、oh-my-zsh のインストール#

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

インストール後、zsh を現在のユーザーのデフォルトシェルに設定する必要があります(これにより、新しいコマンドが zsh を使用します):

chsh -s /bin/zsh

4-1、ハイライトの宣言#

Homebrew を使用してインストールする場合:

brew install zsh-syntax-highlighting

インストールが成功したら、~/.zshrc ファイルを編集し、最後の行に次の設定を追加します:

source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 

4-2、自動補完#

設定手順は、まず zsh-autosuggestions プロジェクトを指定のディレクトリにクローンします:

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions

次に、~/.zshrc ファイルを編集し、プラグインに zsh-autosuggestions を追加します:

plugins=(git zsh-autosuggestions)

5、node のインストール#

brwe search nodejsを使用して、node のバージョンを確認し、適切なバージョンを選択してインストールします。私は node@18 バージョンをインストールしています。

brew install node@18

インストールが完了すると、次のようなメッセージが表示されます。指示に従って操作を行ってください。

==> Caveats
node@18 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have node@18 first in your PATH, run:
echo 'export PATH="/usr/local/opt/node@18/bin:$PATH"' >> ~/.zshrc

For compilers to find node@18 you may need to set:
export LDFLAGS="-L/usr/local/opt/node@18/lib"
export CPPFLAGS="-I/usr/local/opt/node@18/include"
==> Summary
🍺  /usr/local/Cellar/node@18/18.18.1: 2,337 files, 51.1MB
==> Running `brew cleanup node@18`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Caveats
==> node@18
node@18 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have node@18 first in your PATH, run:
echo 'export PATH="/usr/local/opt/node@18/bin:$PATH"' >> ~/.zshrc

For compilers to find node@18 you may need to set:
export LDFLAGS="-L/usr/local/opt/node@18/lib"
export CPPFLAGS="-I/usr/local/opt/node@18/include"

指示に従って入力してください。

echo 'export PATH="/usr/local/opt/node@18/bin:$PATH"' >> ~/.zshrc

この記事は Mix Space から同期され、xLog にも更新されています。
元のリンクは https://liu-wb.com/posts/default/1


読み込み中...
文章は、創作者によって署名され、ブロックチェーンに安全に保存されています。