-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·44 lines (36 loc) · 1.44 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
sudo -v
# Hide "last login" line when starting a new terminal session
touch $HOME/.hushlogin
# Change default screenshot directory
mkdir -p $HOME/Pictures/Screenshots
defaults write com.apple.screencapture location $HOME/Pictures/Screenshots
# install brew apps
brew bundle
# install php extensions
pecl install xdebug
pecl install imagick
pecl install gnupg
# install default composer packages
composer self-update
composer global require symfony/thanks
composer global require ergebnis/composer-normalize
composer global require bamarni/composer-bin-plugin
# configure git
[ ! -f ~/.global.gitignore ] && ln -s ~/.dotfiles/stubs/.global.gitignore ~/.global.gitignore
git config --global core.autocrlf input
git config --global core.excludesfile ~/.global.gitignore
git config --global pull.rebase false
git config --global pull.ff only
git config --global push.default current
git config --global branch.autosetupmerge
git config --global commit.gpgsign true
git config --global user.name "Tom Witkowski"
git config --global user.email "dev.gummibeer@gmail.com"
git config --global credential.helper osxkeychain
echo "sign commits: https://help.github.com/en/github/authenticating-to-github/associating-an-email-with-your-gpg-key"
# add bash configuration
[ ! -f ~/.bash_profile ] && ln -s ~/.dotfiles/stubs/.bash_profile ~/.bash_profile
source ~/.bash_profile
[ ! -f ~/.bashrc ] && ln -s ~/.dotfiles/stubs/.bashrc ~/.bashrc
source ~/.bashrc