Skip to content

Commit

Permalink
Moving zsh plugin config to dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaweees committed May 17, 2024
1 parent bbade98 commit 4bb7921
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 78 deletions.
3 changes: 1 addition & 2 deletions local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
vars_files:
- vars/nvm.yml
- vars/node.yml
- vars/zsh.yml

vars:
source_key: "./.ssh/id_rsa"
Expand Down Expand Up @@ -40,7 +39,7 @@
- include: tasks/flatpak-setup.yml
- include: tasks/discord-setup.yml
- include: tasks/neovim-setup.yml
# - include: tasks/zsh-setup.yml
- include: tasks/zsh-setup.yml
# - include: tasks/dotfiles.yml
# - include: tasks/suckless-setup.yml
# - include: tasks/node-setup.yml
Expand Down
1 change: 1 addition & 0 deletions tasks/core-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- tree
- unzip
- wget
- zsh
tags:
- minimal-install
- install
Expand Down
44 changes: 5 additions & 39 deletions tasks/zsh-setup.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,6 @@
- name: Install ZSH
apt: name=zsh
tags: &tags_for_zsh_tasks [ 'install', 'productivity', 'dotfiles', 'zsh' ]

- name: Change shell to zsh
shell: chsh -s $(which zsh)
tags: *tags_for_zsh_tasks

- name: Set zsh as default shell
ansible.builtin.user:
name: "{{ lookup('env', 'USER') }}"
shell: "{{ lookup('env', 'HOME') }}/.oh-my-zsh"
become: true
tags: *tags_for_zsh_tasks

- name: Check that the somefile.conf exists
stat:
path: "{{ lookup('env', 'HOME') }}/.oh-my-zsh"
register: oh_my_stats
tags: *tags_for_zsh_tasks

- name: Oh-My-Zsh
shell: curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh > ~/.oh-my-installer && chmod +x ~/.oh-my-installer && ~/.oh-my-installer
tags: *tags_for_zsh_tasks
when: oh_my_stats.stat.exists == False
become_user: "{{ lookup('env', 'USER') }}"

- name: Install zsh-autosuggestions
ansible.builtin.git:
repo: 'https://github.com/zsh-users/zsh-autosuggestions.git'
dest: "~/.oh-my-zsh/plugins/zsh-autosuggestions"
tags: *tags_for_zsh_tasks

- name: install zsh plugins
become: true
ansible.builtin.git:
repo: 'https://github.com/{{ item.source }}.git'
dest: "~/.oh-my-zsh/plugins/{{ item.name }}"
tags: *tags_for_zsh_tasks
with_items: "{{ oh_my_zsh_plugins }}"
shell: chsh -s $(which zsh)
tags:
- minimal-install
- install
- zsh
37 changes: 0 additions & 37 deletions vars/zsh.yml

This file was deleted.

0 comments on commit 4bb7921

Please sign in to comment.