sudo nano ~/.inputrc
# Add following content
set completion-ignore-case on
set show-all-if-ambiguous on
TAB: menu-complete
# close terminal then try again
echo 'autoload -Uz compinit && compinit' >> ~/.zshrc
source ~/.zshrc
If above code not work then try this
sudo nano ~/.zshrc
# put this at the end of file
autoload -Uz compinit && compinit
# reload
source ~/.zshrc
You can change the color with the color defined in here https://misc.flogisoft.com/bash/tip_colors_and_formatting
# Open zshrc file
sudo nano ~/.zshrc
# Add this to the bottom
parse_git_branch() {
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
}
COLOR_DEF='%f'
COLOR_USR='%F{243}'
COLOR_DIR='%F{197}'
COLOR_GIT='%F{39}'
NEWLINE=$'\n'
setopt PROMPT_SUBST
export PROMPT='${COLOR_USR}%n@%M ${COLOR_DIR}%d ${COLOR_GIT}$(parse_git_branch)${COLOR_DEF}${NEWLINE}%% '
# Reload
source ~/.zshrc
Run this command first
npm config set registry https://registry.npmjs.org/
open -a TextEdit filename
sudo nano /etc/hosts