Skip to content

Commit

Permalink
Adds role to configure user environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4e3 committed Apr 30, 2018
1 parent d3bf18d commit 103c07b
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Ansible playbook for Mac OS X bootstrap for Python Full stack developers.
## Roles

* [0x4e3.osx-bootstrap-homebrew](https://galaxy.ansible.com/0x4e3/osx-bootstrap-homebrew/) -- install homebrew, required taps, packages and applications.
* [0x4e3.osx-bootstrap-user](https://galaxy.ansible.com/0x4e3/osx-bootstrap-user/) -- configure user environment (shell, path, etc.).
* [0x4e3.osx-bootstrap-npm](https://galaxy.ansible.com/0x4e3/osx-bootstrap-npm/) -- install node, npm and required global packages for frontend.

## General content
Expand Down
2 changes: 2 additions & 0 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
vars_files:
- vars/homebrew.yml
- vars/npm.yml
- vars/user.yml
roles:
- 0x4e3.osx-bootstrap-homebrew
- 0x4e3.osx-bootstrap-user
- 0x4e3.osx-bootstrap-npm
6 changes: 6 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- src: 0x4e3.osx-bootstrap-homebrew
version: 1.0.2
- src: 0x4e3.osx-bootstrap-user
- src: 0x4e3.osx-bootstrap-npm
version: 1.0.0
40 changes: 40 additions & 0 deletions vars/user.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
user_exports:
- PATH="/usr/local/sbin:$PATH"
- PATH="/usr/local/opt/node@6/bin:$PATH"
- PATH="$PATH:$HOME/.rvm/bin"
- PATH="/usr/local/opt/[email protected]/bin:$PATH"
- PATH=$PATH:/usr/local/opt/go/libexec/bin
- GOPATH=$HOME/Projects/go
- PATH=$PATH:$GOPATH/bin
- PYTHONDONTWRITEBYTECODE=whooosh

oh_my_zsh_plugins:
- osx
- man
- colored-man
- brew
- git
- git-flow
- python
- pip
- virtualenv
- pyenv
- django
- celery

oh_my_zsh_hash_directories:
- projects=~/Projects
- sandbox=~/Projects/sandbox
- suzuki-projects=~/Projects/suzuki
- itgene-projects=~/Projects/itgene
- personal=~/Projects/personal

oh_my_zsh_aliases:
- zshconfig="vim ~/.zshrc"
- zshupdate="source ~/.zshrc"
- ohmyzsh="vim ~/.oh-my-zsh"
- lh="ls -lah"
- get-pub-key="cat ~/.ssh/id_rsa.pub"
- c="/usr/bin/clear"
- fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'

0 comments on commit 103c07b

Please sign in to comment.