We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Distribute a custom .zshrc file with autosuggestions and syntax-highlighting functions.
.zshrc
main.yml file in your project folder:
main.yml
- name: zsh hosts: all vars: zsh_config_backup: false zsh_config_overwrite: true zsh_users: - lorem - ipsum zsh_users_config: - template: "zshrc.j2" filename: ".zshrc" zsh_dependencies: - zsh-autosuggestions - zsh-syntax-highlighting roles: - bec.shell.zsh tasks: - ansible.builtin.debug: msg: "ZSH was installed and additional functions were enabled."
zshrc.j2 file in your templates folder:
zshrc.j2
{% if zsh_config_overwrite is true %} # # {{ ansible_managed }} # {% endif %} autoload colors && colors source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh