2020-07-12 16:19:25 +02:00
|
|
|
# Introduction
|
|
|
|
|
|
|
|
[](https://github.com/pre-commit/pre-commit)
|
|
|
|
|
2019-08-11 10:46:37 +02:00
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
### Centos
|
2020-07-11 12:25:30 +02:00
|
|
|
|
2019-11-16 13:01:53 +01:00
|
|
|
`yum install git -y`
|
2019-08-11 10:46:37 +02:00
|
|
|
|
2019-08-10 13:55:59 +02:00
|
|
|
## Setup
|
2020-07-11 12:25:30 +02:00
|
|
|
|
2019-08-10 13:55:59 +02:00
|
|
|
```
|
2020-07-09 07:40:11 +02:00
|
|
|
git clone https://github.com/MorganGeek/dotfiles.git $HOME/Code/dotfiles
|
|
|
|
$HOME/Code/dotfiles/dot_scripts/bootstrap.sh
|
2019-08-10 13:55:59 +02:00
|
|
|
```
|
|
|
|
|
2019-07-25 21:38:04 +02:00
|
|
|
### Run
|
2020-07-11 12:25:30 +02:00
|
|
|
|
2019-07-25 21:38:04 +02:00
|
|
|
run `.scripts/bootstrap.sh`
|
2019-03-01 09:47:48 +01:00
|
|
|
|
2019-07-25 21:38:04 +02:00
|
|
|
### Reload
|
2020-07-11 12:25:30 +02:00
|
|
|
|
2019-07-25 21:38:04 +02:00
|
|
|
run `zsh .scripts/reload.sh`
|
2019-03-01 09:47:48 +01:00
|
|
|
|
2019-07-25 21:38:04 +02:00
|
|
|
### Upgrade
|
2020-07-11 12:25:30 +02:00
|
|
|
|
2019-07-25 21:38:04 +02:00
|
|
|
run `zsh .scripts/upgrade.sh`
|
2019-03-01 09:47:48 +01:00
|
|
|
|
2019-07-25 21:38:04 +02:00
|
|
|
### Scope
|
2020-07-11 12:25:30 +02:00
|
|
|
|
|
|
|
- Use SDKMan to install development tools
|
|
|
|
- Install Docker Desktop for Mac
|
|
|
|
- Install asciidoctor-pdf
|
|
|
|
- Install Oh My Zsh and some cool dependencies
|
|
|
|
- OSX Defaults
|
|
|
|
- Install NPM dependencies
|
|
|
|
- Install pip and pipenv
|
|
|
|
- Install AWS-CLI
|
2019-07-23 21:25:52 +02:00
|
|
|
|
2020-07-12 16:19:25 +02:00
|
|
|
### If Yubico is installed, run this
|
2020-07-11 12:25:30 +02:00
|
|
|
|
2019-08-17 11:52:17 +02:00
|
|
|
`sudo ansible-playbook ~/.scripts/ansible/macsecure_playbook.yaml`
|
2019-07-20 12:10:13 +02:00
|
|
|
|
2019-07-25 21:38:04 +02:00
|
|
|
#### In cases of `\n` errors with zsh
|
2020-07-11 12:25:30 +02:00
|
|
|
|
2020-07-12 16:19:25 +02:00
|
|
|
[Source](https://github.com/robbyrussell/oh-my-zsh/issues/6764#issuecomment-384045008)
|
2020-07-11 12:25:30 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
cd $ZSH
|
|
|
|
git config core.autocrlf false
|
|
|
|
git rm --cached -r .
|
|
|
|
git reset --hard
|
|
|
|
```
|