Enable "locate" command in Mac OS
Install GDB on Mac OS

Configure git bash prompt on Mac OS Lion

Author posted @ 2013年9月29日 09:59 in Mac OS with tags Git mac os , 4024 阅读

Create a ~/.bash_profile and enable colors using:

export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$"
export CLICOLOR=1
# light theme, white background
export LSCOLORS=ExFxBxDxCxegedabagacad

alias ls='ls -GFh'

In the ~/ folder, create subfolder .bash and drop gitprompt.sh and gitstatus.py files there (bash.zip)

In the ~/.bash_profile file, add ``source ~/.bash/gitprompt.s'' so the file becomes:

export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$"
export CLICOLOR=1
# light theme, white background
export LSCOLORS=ExFxBxDxCxegedabagacad

alias ls='ls -GFh'

#enable git bash prompt
source ~/.bash/gitprompt.sh

Restart terminal, and see the new look :

References

  1. http://osxdaily.com/2013/02/05/improve-terminal-appearance-mac-os-x/
  2. http://jimmylarkin.net/post/2013/04/18/The-ultimate-git-bash-prompt.aspx

 

seo 说:
2021年12月04日 01:16

Caldwells' products have everything you need when it comes to doors and installations. No wonder I always work with them whenever I have a project. If you want to contact them, here's the link to their https://caldwells.com/interior-doors/shaker-doors.

UBSE Question Paper 说:
2022年8月16日 00:31

Uttarakhand Board Model Paper 2023 Class 6 Pdf Download with Answers for English Medium, Hindi Medium, Urdu Medium & Students for Small Answers, Long Answer, Very Long Answer Questions, and Essay Type Questions to Term1 & Term2 Exams

anonymous 说:
2023年7月09日 23:07

I also wrote an article on a similar subject will find it at       write what you think. Kissimmee Bed Bug Control

anonymous 说:
2023年7月19日 17:22

Your texts on this subject are correct, see how I wrote        this site is really very good. Orlando Termite Control

anonymous 说:
2023年7月19日 17:24

Welcome to the party of my life      here you will learn everything about me. Oviedo Termite Control

anonymous 说:
2023年9月12日 01:39

Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing... Mobile Home Supply Store


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter