Create a file in the Home directory. touch ~/git-prompt.sh Copy these codes into the file. Link here put below codes in ~/.zshrc file # auto complete on pressing TAB