Added ZSH + ohmyzsh

This commit is contained in:
Sagi Dayan 2021-10-30 12:54:38 +03:00
parent 061cca81b5
commit bcecaa589b
Signed by: sagi
GPG key ID: FAB96BFC63B46458
2 changed files with 15 additions and 0 deletions

View file

@ -2,11 +2,13 @@
become: true become: true
package: package:
name: name:
- zsh
- curl - curl
- bat - bat
- wget - wget
- git - git
- flatpak - flatpak
- ranger
state: present state: present
- name: Some more packages (RedHat based) - name: Some more packages (RedHat based)
@ -22,6 +24,17 @@
dest: ~/.gitconfig dest: ~/.gitconfig
force: no force: no
- name: Setting up oh-my-zsh
git:
repo: https://github.com/ohmyzsh/ohmyzsh.git
dest: ~/.oh-my-zsh
- name: Making sure to use ZSH as shell
become: true
user:
name: "{{ running_user }}"
shell: /bin/zsh
- name: Copy zsh config - name: Copy zsh config
copy: copy:
src: dotfiles/zshrc src: dotfiles/zshrc

View file

@ -2,6 +2,8 @@
vars: vars:
# Theme options: monokai, gruvbox, nord # Theme options: monokai, gruvbox, nord
theme: nord theme: nord
# The running user
running_user: "{{ ansible_user_id }}"
roles: roles:
- base - base
- fonts - fonts