Setup Auto Complete in Mac-OS :-: Monterey

By default Mac uses ZSH for their Terminal. But ZSH comes with basic autocomplete function. To make ZSH Autocompletion Completion Better or efficient follow Below Commands.

Open ZSHRC file in ETC folder with command

sudo nano /etc/zshrc

Paste Below Code into ZSHRC file.

# Autocompletion by Siddharth Sangwan
autoload -Uz compinit && compinit

zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*'
setopt MENU_COMPLETE

Reference Links:-:
https://scriptingosx.com/2019/07/moving-to-zsh-part-5-completions/

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Siddharth Sangwan

Siddharth Sangwan

More from Medium

Adding multiple SSH keys on one system

How-To: Open Terminal Tabs & Execute Commands via your CLI

Zoom screen sharing on linux (Ubuntu & Fedora)

Setting up SSH server on WSL