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

*Step 1: Install oh-my-zsh via curl *

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

Step 2: Add autocomplete plugin

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugi…


This content originally appeared on DEV Community and was authored by Nguyen Dinh Khai

Image description
*Step 1: Install oh-my-zsh via curl *

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

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

*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.z

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

Step 4: Done :D


This content originally appeared on DEV Community and was authored by Nguyen Dinh Khai


Print Share Comment Cite Upload Translate Updates
APA

Nguyen Dinh Khai | Sciencx (2024-07-09T10:09:02+00:00) How to install oh-my-zsh and zsh-autosuggestions for macbook. Retrieved from https://www.scien.cx/2024/07/09/how-to-install-oh-my-zsh-and-zsh-autosuggestions-for-macbook/

MLA
" » How to install oh-my-zsh and zsh-autosuggestions for macbook." Nguyen Dinh Khai | Sciencx - Tuesday July 9, 2024, https://www.scien.cx/2024/07/09/how-to-install-oh-my-zsh-and-zsh-autosuggestions-for-macbook/
HARVARD
Nguyen Dinh Khai | Sciencx Tuesday July 9, 2024 » How to install oh-my-zsh and zsh-autosuggestions for macbook., viewed ,<https://www.scien.cx/2024/07/09/how-to-install-oh-my-zsh-and-zsh-autosuggestions-for-macbook/>
VANCOUVER
Nguyen Dinh Khai | Sciencx - » How to install oh-my-zsh and zsh-autosuggestions for macbook. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/09/how-to-install-oh-my-zsh-and-zsh-autosuggestions-for-macbook/
CHICAGO
" » How to install oh-my-zsh and zsh-autosuggestions for macbook." Nguyen Dinh Khai | Sciencx - Accessed . https://www.scien.cx/2024/07/09/how-to-install-oh-my-zsh-and-zsh-autosuggestions-for-macbook/
IEEE
" » How to install oh-my-zsh and zsh-autosuggestions for macbook." Nguyen Dinh Khai | Sciencx [Online]. Available: https://www.scien.cx/2024/07/09/how-to-install-oh-my-zsh-and-zsh-autosuggestions-for-macbook/. [Accessed: ]
rf:citation
» How to install oh-my-zsh and zsh-autosuggestions for macbook | Nguyen Dinh Khai | Sciencx | https://www.scien.cx/2024/07/09/how-to-install-oh-my-zsh-and-zsh-autosuggestions-for-macbook/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.