Skip to content

Commit

Permalink
more work on zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Apr 19, 2024
1 parent dab0df6 commit 2dade84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions roles/zsh/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ zsh_global_env:
zsh_histsize: 1000

zsh_virtualization_type: "{{ virtualization_type if virtualization_type is defined else ansible_virtualization_type }}"

zsh_auto_ls_plugin_file: /usr/share/alphanodes/zsh/auto-ls.zsh
6 changes: 1 addition & 5 deletions roles/zsh/tasks/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@
state: directory
recurse: true

- name: Set auto-ls plugin file
ansible.builtin.set_fact:
auto_ls_plugin_file: '/usr/share/alphanodes/zsh/auto-ls.zsh'

- name: Install auto-ls plugin
ansible.builtin.copy:
src: auto-ls.zsh

Check warning on line 33 in roles/zsh/tasks/setup.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

jinja[spacing]

Jinja2 spacing could be improved: {{zsh_auto_ls_plugin_file }} -> {{ zsh_auto_ls_plugin_file }}
dest: '{{ auto_ls_plugin_file }}'
dest: '{{zsh_auto_ls_plugin_file }}'
mode: 0644
2 changes: 1 addition & 1 deletion roles/zsh/templates/zshrc.j2
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export {{ export_info.name }}={{ export_info.value }}
{% endfor %}
# activate ls after cd
source {{ auto_ls_plugin_file }}
source {{ zsh_auto_ls_plugin_file }}
# activate ls after cd - alternative
# autoload -U add-zsh-hook
Expand Down

0 comments on commit 2dade84

Please sign in to comment.