راه اندازی ZSH و Oh-my-ZHS با افزونه های تکمیل خودکار

در این پست به شما آموزش گام به گام نحوه راه اندازی oh-my-zsh در ترمینال خود با به نظر من، افزونه های ضروری
اول چیزهای مهم:
اگر لینوکس را اجرا می کنید، می توانید از مدیر بسته خود برای نصب تمام بسته های ضروری استفاده کنید و مستقیماً به بخش پیکربندی بروید.
بجای apt install
از دستورات مدیریت بسته خود استفاده کنید.
لینوکس را با استفاده از مدیریت بسته نصب کنید
sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh zsh-autocomplete
نصب ترمینال با استفاده از Git و sh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
-
پلاگین ها را نصب کنید
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting
git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/plugins/zsh-autocomplete
پیکربندی
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
fast-syntax-highlighting
zsh-autocomplete
)
- محیط خود را مجدداً بارگیری کنید تا تغییرات مؤثر واقع شوند!
اختیاری
- تم cutom را فعال کنید
nano ~/.zshrc
- پیدا کن
ZSH_THEME="robbyrussell"
- تعویض با
ZSH_THEME="alanpeabody"
می توانید فورک فایل من را در Github Gists پیدا کنید