• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

fabriziocucci/git-bash-for-mac: Git Bash for Mac

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

fabriziocucci/git-bash-for-mac

开源软件地址:

https://github.com/fabriziocucci/git-bash-for-mac

开源编程语言:

Shell 100.0%

开源软件介绍:

Git Bash for Mac

Did you (finally) migrate from Windows to Mac and the only thing you miss is the lovely Git Bash? You have no idea what the Git Bash is (or Windows for that matters) and yet you really want to improve your Git experience on Mac?

Here it comes the Git Bash for Mac: a nice Terminal customisation that always shows you the branch you are on, powered by a tab-based autocompletion for all of Git’s subcommands, command-line parameters, and remotes and ref names.

git-bash-for-mac

Install

Follow these steps:

  1. from the Terminal, run
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/fabriziocucci/git-bash-for-mac/master/install.sh)"
  1. open Terminal -> Preferences -> Profiles and select the Pro theme;
  2. restart the Terminal and enjoy!

Uninstall

Follow these steps:

  1. from the Terminal, run
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/fabriziocucci/git-bash-for-mac/master/uninstall.sh)"
  1. open Terminal -> Preferences -> Profiles and select the theme you used to have;
  2. restart the Terminal and (un)enjoy!

Customize

You don't like the colors of your new prompt? Open ~/.git-bash-for-mac.sh and start messing up with it!

In addition, by simply exporting a couple of variables in ~/.git-bash-for-mac.sh you can make you prompt even more informative:

  • if you set export GIT_PS1_SHOWDIRTYSTATE=1, unstaged (*) and staged (+) changes will be shown next to the branch name;
  • if you set export GIT_PS1_SHOWSTASHSTATE=1 and something is stashed then a '$' will be shown next to the branch name;
  • if you set export GIT_PS1_SHOWUNTRACKEDFILES=1 and there are untracked files then a '%' will be shown next to the branch name.

More info and options can be found here.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
jondwillis/AChartEngine: Git mirror of AChartEngine (SVN)发布时间:2022-06-11
下一篇:
dirtycow/dirtycow.github.io: Dirty COW发布时间:2022-06-11
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap