This content originally appeared on DEV Community and was authored by Nguyen Dinh Khai
*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 tozsh-autosuggestions
andzsh-syntax-highlighting
in your local macbook
Step 4: Done :D
This content originally appeared on DEV Community and was authored by Nguyen Dinh Khai
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/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.