fix: zsh role add fzf support and p10k settings tweaks
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
repo: "{{ item.repo }}"
|
||||
dest: "{{ item.dest }}"
|
||||
update: true
|
||||
version: master
|
||||
version: "{{ item.version | default('master') }}"
|
||||
loop:
|
||||
- repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||
dest: "{{ zsh_plugins_path }}/zsh-syntax-highlighting"
|
||||
@@ -30,6 +30,16 @@
|
||||
dest: "{{ zsh_plugins_path }}/zsh-autosuggestions"
|
||||
- repo: https://github.com/romkatv/powerlevel10k.git
|
||||
dest: "{{ zsh_plugins_path }}/powerlevel10k"
|
||||
- repo: https://github.com/zsh-users/zsh-history-substring-search.git
|
||||
dest: "{{ zsh_plugins_path }}/zsh-history-substring-search"
|
||||
- repo: https://github.com/Aloxaf/fzf-tab.git
|
||||
dest: "{{ zsh_plugins_path }}/fzf-tab"
|
||||
version: master
|
||||
|
||||
- name: Install fzf package
|
||||
ansible.builtin.package:
|
||||
name: fzf
|
||||
state: present
|
||||
|
||||
- name: Assert plugins are available for any user
|
||||
ansible.builtin.file:
|
||||
@@ -42,3 +52,5 @@
|
||||
- "{{ zsh_plugins_path }}/zsh-syntax-highlighting"
|
||||
- "{{ zsh_plugins_path }}/zsh-autosuggestions"
|
||||
- "{{ zsh_plugins_path }}/powerlevel10k"
|
||||
- "{{ zsh_plugins_path }}/zsh-history-substring-search"
|
||||
- "{{ zsh_plugins_path }}/fzf-tab"
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
---
|
||||
- name: Setup .zshenv (environment variables)
|
||||
ansible.builtin.template:
|
||||
src: zshenv.j2
|
||||
dest: "{{ zsh_home }}/.zshenv"
|
||||
owner: "{{ zsh_user }}"
|
||||
group: "{{ zsh_user }}"
|
||||
mode: "0600"
|
||||
|
||||
- name: Setup zsh base config
|
||||
ansible.builtin.template:
|
||||
src: main.zshrc.j2
|
||||
@@ -31,6 +39,18 @@
|
||||
group: "{{ zsh_user }}"
|
||||
mode: "0600"
|
||||
|
||||
- name: Configure fzf-tab plugin
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ zsh_config_path }}/fzf-tab.zsh"
|
||||
content: |
|
||||
# Enable fzf-tab
|
||||
zstyle ':fzf-tab:*' continuous-trigger 'right'
|
||||
zstyle ':fzf-tab:*' group-colors ''
|
||||
zstyle ':fzf-tab:*' preview-contained-categories true
|
||||
owner: "{{ zsh_user }}"
|
||||
group: "{{ zsh_user }}"
|
||||
mode: "0600"
|
||||
|
||||
- name: Change default shell to zsh
|
||||
ansible.builtin.user:
|
||||
name: "{{ zsh_user }}"
|
||||
|
||||
Reference in New Issue
Block a user