Skip to content

Commit

Permalink
Removed manual step in the uninstall procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziocucci committed May 13, 2017
1 parent a4eaa97 commit 1bec7cb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
2 changes: 0 additions & 2 deletions .git-bash-for-mac.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash

### Git Bash for Mac (v1)

source ~/.git-completion.bash
source ~/.git-prompt.sh

Expand Down
14 changes: 3 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,12 @@ Follow these steps:
```shell
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/fabriziocucci/git-bash-for-mac/master/uninstall.sh)"
```
2. open `~/.bash_profile` and remove the following lines:
```shell
...
### Git Bash for Mac

source ~/.git-bash-for-mac.sh
...
```
3. open `Terminal` -> `Preferences` -> `Profiles` and select the theme you used to have;
4. restart the `Terminal` and (un)enjoy!
2. open `Terminal` -> `Preferences` -> `Profiles` and select the theme you used to have;
3. 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 your prompt!
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;
Expand Down
4 changes: 0 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
set -e

curl -o ~/.git-bash-for-mac.sh https://raw.githubusercontent.com/fabriziocucci/git-bash-for-mac/master/.git-bash-for-mac.sh

curl -o ~/.git-completion.bash https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
curl -o ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh

echo "" >> ~/.bash_profile
echo "### Git Bash for Mac" >> ~/.bash_profile
echo "" >> ~/.bash_profile
echo "source ~/.git-bash-for-mac.sh" >> ~/.bash_profile
4 changes: 3 additions & 1 deletion uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

rm ~/.git-bash-for-mac.sh
rm ~/.git-completion.bash
rm ~/.git-prompt.sh
rm ~/.git-prompt.sh

sed -i.backup '/source ~\/.git-bash-for-mac.sh/d' ~/.bash_profile

0 comments on commit 1bec7cb

Please sign in to comment.