Skip to content

Commit 9015daf

Browse files
Aayush KumarRajesh Muppalla
authored andcommitted
Making setup-script generic (#1)
* Making script more generic by accepting GitHub username and email from command line * Improving README.md * Minor fixes in README.md * Minor Fix * Fixing the command to take arguments to shell script and not to curl * Minor Fix in formatting for README.md
1 parent 812abe0 commit 9015daf

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
Dead simple script to setup my new Mac:
1+
# Dead simple script to setup my new Mac
22

3-
```shell
4-
curl -sL https://raw.githubusercontent.com/codingnirvana/mac-setup-script/master/setup.sh | sh
5-
```
3+
### Installation
4+
- Paste the following command on your command line
5+
6+
```shell
7+
$ curl -sL https://raw.githubusercontent.com/codingnirvana/mac-setup-script/master/setup.sh | bash -s $1 $2
8+
```
9+
10+
- Replace $1 and $2 with the following credentials of your GitHub account
11+
- ```GitHub Username```
12+
- ```GitHub email```

‎setup.sh‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ casks=(
4141
intellij-idea-ce
4242
iterm2
4343
kindle
44-
picasa
44+
picasa
4545
java
4646
slack
4747
screenhero
4848
skype
4949
todoist
5050
teleport
5151
vlc
52-
tunnelblick
52+
tunnelblick
5353
)
5454

5555
pips=(
@@ -146,7 +146,8 @@ echo "Setting git defaults ..."
146146
git config --global rerere.enabled true
147147
git config --global branch.autosetuprebase always
148148
git config --global credential.helper osxkeychain
149-
git config --global user.email mrajesh123@gmail.com
149+
git config --global user.name $1
150+
git config --global user.email $2
150151

151152
echo "Upgrading ..."
152153
pip install --upgrade setuptools

0 commit comments

Comments
 (0)