dotfiles/roles/user/shell/zsh/tasks/oh-my-zsh.yml
Matej Focko 888a816c5f
fix: do not hardcode user in the config files
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-07-01 13:16:14 +02:00

35 lines
1,014 B
YAML

---
- name: Fetch the oh-my-zsh installer
ansible.builtin.get_url:
url: https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
dest: /tmp/oh-my-zsh.sh
mode: 0700
- name: Install oh-my-zsh
ansible.builtin.command:
cmd: sh /tmp/oh-my-zsh.sh --unattended
creates: ~/.oh-my-zsh
- name: Clone zsh-autosuggestions
ansible.builtin.git:
repo: https://github.com/zsh-users/zsh-autosuggestions
dest: ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
update: no
- name: Clone zsh-syntax-highlighting
ansible.builtin.git:
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
dest: ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
update: no
- name: Clone zsh-aliases-exa
ansible.builtin.git:
repo: https://github.com/DarrinTisdale/zsh-aliases-exa.git
dest: ~/.oh-my-zsh/custom/plugins/zsh-aliases-exa
update: no
- name: Create the config
ansible.builtin.template:
src: templates/zshrc
dest: ~/.zshrc
mode: 0600