diff options
author | Aaditya Dhruv <[email protected]> | 2023-11-28 02:49:41 +0000 |
---|---|---|
committer | Aaditya Dhruv <[email protected]> | 2023-11-28 02:55:44 +0000 |
commit | 9fc4fdb61e0556b9acbe7acd543afe352be6d328 (patch) | |
tree | 392d36c8335a32e45c0657181ca95317c984469c | |
parent | ebc2b32f9db956f8e962a56044c9b6bd68b112ba (diff) |
Add installation of zsh-plugins
-rw-r--r-- | src/config/tasks/main.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/config/tasks/main.yaml b/src/config/tasks/main.yaml index ee7b210..3085580 100644 --- a/src/config/tasks/main.yaml +++ b/src/config/tasks/main.yaml @@ -4,10 +4,30 @@ ansible.builtin.dnf: name: "zsh" state: latest + - name: Setup oh-my-zsh become: true become_user: aaditya ansible.builtin.shell: 'sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended' + ignore_errors: true + + - name: Setup zsh-autosuggestions + become: true + become_user: aaditya + ansible.builtin.shell: 'git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions' + ignore_errors: true + + - name: Setup zsh-syntax-highlighting + become: true + become_user: aaditya + ansible.builtin.shell: 'git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting' + ignore_errors: true + + - name: Setup powerlevel10k + become: true + become_user: aaditya + ansible.builtin.shell: 'git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k' + ignore_errors: true - name: Setup p10k, tmux and zshrc ansible.builtin.copy: |