diff options
author | Nikolaos Boutalas <nikolaos@boutalas.me> | 2024-01-05 03:50:50 +0200 |
---|---|---|
committer | Nikolaos Boutalas <nikolaos@boutalas.me> | 2024-03-17 11:48:24 +0200 |
commit | 7217241c87516875cc6f882a9125403b97bf3e06 (patch) | |
tree | 3ddfc0e0d85d41fe141b87c099f82f676bfac545 /tasks/zsh.yml | |
parent | 77475705a59c9c347e8face58cf17b051f84f63e (diff) |
Diffstat (limited to 'tasks/zsh.yml')
-rw-r--r-- | tasks/zsh.yml | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/tasks/zsh.yml b/tasks/zsh.yml deleted file mode 100644 index 5301496..0000000 --- a/tasks/zsh.yml +++ /dev/null @@ -1,52 +0,0 @@ -- name: Change default shell - become: true - ansible.builtin.shell: "usermod -s $(which zsh) {{ ansible_user_id }}" - changed_when: true - tags: - - zsh - -- name: Create .zshenv - ansible.builtin.shell: "echo \"ZDOTDIR=~/.config/zsh\" > ~/.zshenv" - changed_when: true - tags: - - zsh - -- name: Install Oh My Zsh - 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 - 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 - 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 - ansible.builtin.lineinfile: - path: "~/.config/zsh/.zshrc" - regexp: '^plugins=' - line: plugins=(git tmux zsh-autosuggestions zsh-syntax-highlighting) - tags: - - zsh - -- name: Enable tmux autostart - ansible.builtin.lineinfile: - path: "~/.config/zsh/.zshrc" - line: | - if [[ -z $TMUX ]]; then - tmux -u attach || exec tmux -u new-session && exit - fi - tags: - - zsh |