forked from fabriziocucci/git-bash-for-mac
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·17 lines (14 loc) · 826 Bytes
/
install.sh
File metadata and controls
executable file
·17 lines (14 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -e
curl -o ~/.git-bash-for-mac.sh https://raw.githubusercontent.com/ondkloss/git-bash-for-mac/master/.git-bash-for-mac.sh
curl -o ~/.git-bash-for-mac-zsh.sh https://raw.githubusercontent.com/ondkloss/git-bash-for-mac/master/.git-bash-for-mac-zsh.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
touch ~/.bash_profile
# Add newline at the end of the '.bash_profile' if it doesn't exist
sed -i '' '$a\' ~/.bash_profile
echo "source ~/.git-bash-for-mac.sh" >> ~/.bash_profile
touch ~/.zshrc
# Add newline at the end of the '.zshrc' if it doesn't exist
sed -i '' '$a\' ~/.zshrc
echo "source ~/.git-bash-for-mac-zsh.sh" >> ~/.zshrc