diff options
author | Nikolaos Boutalas <nikolaos@boutalas.me> | 2023-08-08 16:59:14 +0300 |
---|---|---|
committer | Nikolaos Boutalas <nikolaos@boutalas.me> | 2023-08-08 17:00:56 +0300 |
commit | fb28a48832d08788f7ac180220e3b684f81a2d4f (patch) | |
tree | c352337506cf8dbbe2db307462ae200dbacb09fc /tasks/zsh.yml | |
parent | bb94bc3f36c3cd26fb57775663408ed804de2b8f (diff) |
Fix linting errors
Diffstat (limited to 'tasks/zsh.yml')
-rw-r--r-- | tasks/zsh.yml | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/tasks/zsh.yml b/tasks/zsh.yml index e0a1251..5301496 100644 --- a/tasks/zsh.yml +++ b/tasks/zsh.yml @@ -1,35 +1,40 @@ - name: Change default shell become: true - shell: "chsh -s $(which zsh) {{ ansible_user_id }}" + ansible.builtin.shell: "usermod -s $(which zsh) {{ ansible_user_id }}" + changed_when: true tags: - zsh - + - name: Create .zshenv - shell: "echo \"ZDOTDIR=~/.config/zsh\" > ~/.zshenv" + ansible.builtin.shell: "echo \"ZDOTDIR=~/.config/zsh\" > ~/.zshenv" + changed_when: true tags: - zsh - name: Install Oh My Zsh - shell: zsh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + ansible.builtin.shell: zsh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + changed_when: true tags: - zsh - name: Install zsh-autosuggestions plugin - git: + ansible.builtin.git: repo: 'https://github.com/zsh-users/zsh-autosuggestions.git' dest: "~/.config/zsh/ohmyzsh/plugins/zsh-autosuggestions" + version: master tags: - zsh - name: Install zsh-syntax-highlighting plugin - git: + ansible.builtin.git: repo: 'https://github.com/zsh-users/zsh-syntax-highlighting.git' dest: "~/.config/zsh/ohmyzsh/plugins/zsh-syntax-highlighting" + version: master tags: - zsh - name: Enable ZSH plugins - lineinfile: + ansible.builtin.lineinfile: path: "~/.config/zsh/.zshrc" regexp: '^plugins=' line: plugins=(git tmux zsh-autosuggestions zsh-syntax-highlighting) @@ -37,7 +42,7 @@ - zsh - name: Enable tmux autostart - lineinfile: + ansible.builtin.lineinfile: path: "~/.config/zsh/.zshrc" line: | if [[ -z $TMUX ]]; then |