1
0

Added the Fish shell

This commit is contained in:
2025-10-04 11:58:13 +02:00
parent f628303ebd
commit cd1700280c
10 changed files with 18 additions and 5 deletions

1
.chezmoi.toml.tmpl Symbolic link
View File

@@ -0,0 +1 @@
home/.chezmoi.toml.tmpl

4
home/.chezmoi.toml.tmpl Normal file
View File

@@ -0,0 +1,4 @@
{{ $shell := promptBoolOnce . "features.shell" "Do you want to install the Fish shell?" true }}
[data.features]
shell = {{ $shell | quote }}

3
home/.chezmoiignore.tmpl Normal file
View File

@@ -0,0 +1,3 @@
{{- if not .features.shell }}
.config/fish
{{- end }}

View File

@@ -46,4 +46,5 @@ echo -e "\e[1;34mRunning the playbook...\e[0m"
ANSIBLE_CONFIG="$ANSIBLE_ROOT/ansible.cfg" \ ANSIBLE_CONFIG="$ANSIBLE_ROOT/ansible.cfg" \
"$ANSIBLE_ROOT/.venv/bin/ansible-playbook" \ "$ANSIBLE_ROOT/.venv/bin/ansible-playbook" \
"$ANSIBLE_ROOT/playbook.yaml" \ "$ANSIBLE_ROOT/playbook.yaml" \
--extra-vars "$(chezmoi data --format=json)" --extra-vars "$(chezmoi data --format=json)" \
--ask-become-pass

View File

@@ -11,7 +11,6 @@
- chezmoi is mapping - chezmoi is mapping
fail_msg: 'Pass with: --extra-vars "$(chezmoi data --format=json)"' fail_msg: 'Pass with: --extra-vars "$(chezmoi data --format=json)"'
- name: 'Example: access the "user" fields' roles:
ansible.builtin.debug: - role: shell
msg: when: features.shell == true
- "user: {{ chezmoi.username | default('n/a') }}"

View File

@@ -0,0 +1,5 @@
- name: Install Fish shell on Arch
become: true
ansible.builtin.pacman:
name: fish
when: chezmoi.osRelease.id == "arch"