Skip to content

Instantly share code, notes, and snippets.

@AbmSourav
Created November 21, 2022 08:05
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AbmSourav/b24cc6249809d2729670af5d627abf66 to your computer and use it in GitHub Desktop.
Save AbmSourav/b24cc6249809d2729670af5d627abf66 to your computer and use it in GitHub Desktop.
Mac terminal customization

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
autoload -Uz compinit && compinit

source ~/.git-prompt.sh
# zsh terminal prompt
setopt PROMPT_SUBST ; PS1='➤ %B%F{cyan}%n%f /%c$(__git_ps1 " ┫%s") $ '

Last but not least install latest Bash version, brew install bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment