Fixed and make better

master
Leo Maroni 4 years ago
parent 8856ecd9ff
commit 1c777421a1
No known key found for this signature in database
GPG Key ID: 787A3A35970DBC6D

@ -1,4 +1,4 @@
- name: install dependencies
- name: install oh-my-zsh dependencies
become: yes
package:
name:
@ -9,7 +9,7 @@
- name: clone oh-my-zsh for users
git:
repo: 'https://github.com/robbyrussell/oh-my-zsh.git'
dest: '~{{ user.username }}/.oh-my.zsh'
dest: '~{{ user.username }}/.oh-my-zsh'
clone: yes
depth: 1
become: yes

@ -1,5 +1,7 @@
{{ ansible_managed | comment }}
{% set oh_my_zsh = user.oh_my_zsh|default({}) %}
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@ -10,7 +12,7 @@ export ZSH=$HOME/.oh-my-zsh
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="{{ user.oh_my_zsh.theme }}"
ZSH_THEME="{{ oh_my_zsh.theme | default(oh_my_zsh_theme) }}"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
@ -70,7 +72,7 @@ DISABLE_AUTO_UPDATE="true"
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=({{ user.oh_my_zsh.plugins | default('') | join(' ') }})
plugins=({{ oh_my_zsh.plugins | default(oh_my_zsh_plugins) | join(' ') }})
source $ZSH/oh-my-zsh.sh
@ -98,4 +100,4 @@ source $ZSH/oh-my-zsh.sh
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# alias ohmyzsh="mate ~/.oh-my-zsh"
Loading…
Cancel
Save