-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
52 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,21 @@ | ||
EMAIL:[email protected] | ||
|
||
all: ansible setup | ||
NAME:=dotfiles | ||
|
||
.PHONY: setup | ||
setup: test | ||
./setup.sh $(EMAIL) | ||
|
||
.PHONY: test | ||
test: install | ||
shellcheck ./tools/install_ansible.sh | ||
shellcheck ./setup.sh | ||
zsh -n zshrc | ||
vint vimrc | ||
setup: | ||
./setup.sh $(EMAIL) $(NAME) | ||
-./tools/install_brew.sh | ||
sudo update-alternatives --config editor | ||
|
||
.PHONY: install | ||
install: | ||
for i in --syntax-check --list-tasks --check -v ; do \ | ||
ansible-playbook -i inventory/localhost.ini install_playbook.yml $$i; done | ||
|
||
.PHONY: ansible | ||
ansible: | ||
./tools/install_ansible.sh | ||
sudo apt install -y vim | ||
curl -fsSL https://get.docker.com -o get-docker.sh | ||
./get-docker.sh | ||
sudo groupadd docker | ||
sudo usermod -aG docker $(USER) | ||
sudo chown $(USER):$(USER) /home/$(USER)/.docker -R | ||
mkdir -p /home/$(USER)/.docker | ||
sudo chmod g+rwx $(HOME)/.docker -R | ||
brew install peco | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash -eux | ||
|
||
sudo apt-get install build-essential procps curl file git | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
|
||
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.zshrc | ||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | ||
sudo apt-get install build-essential | ||
brew install gcc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters