DEV Community

Cover image for How to install oh-my-zsh and zsh-autosuggestions for macbook
Nguyen Dinh Khai
Nguyen Dinh Khai

Posted on • Edited on

37

How to install oh-my-zsh and zsh-autosuggestions for macbook

Image description

Step 1: Install oh-my-zsh via curl



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


Enter fullscreen mode Exit fullscreen mode

Step 2: Add autocomplete plugin



git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-completions.git ~/.oh-my-zsh/custom/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-history-substring-search.git ~/.oh-my-zsh/custom/plugins/zsh-history-substring-search


Enter fullscreen mode Exit fullscreen mode

Step 3: Open .zshrc and paste those code at the end of the file



# Terminal autocomplete fix
autoload -Uz compinit && compinit

plugins=(
    git
    docker
    asdf
    zsh-autosuggestions
    zsh-completions 
    zsh-history-substring-search 
    zsh-syntax-highlighting
)
source /PATH/TO/zsh-autosuggestions/zsh-autosuggestions.zsh
source /PATH/TO/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh


Enter fullscreen mode Exit fullscreen mode

Note: Change /PATH/TO with the path to zsh-autosuggestions and zsh-syntax-highlighting in your local macbook

Step 4: Done :D

Image of AssemblyAI tool

Challenge Submission: SpeechCraft - AI-Powered Speech Analysis for Better Communication

SpeechCraft is an advanced real-time speech analytics platform that transforms spoken words into actionable insights. Using cutting-edge AI technology from AssemblyAI, it provides instant transcription while analyzing multiple dimensions of speech performance.

Read full post

Top comments (1)

Collapse
 
mahidulislam profile image
Mahidul Islam Zihan

Thanks

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay