Added the Fish shell
This commit is contained in:
Symlink
+1
@@ -0,0 +1 @@
|
||||
home/.chezmoi.toml.tmpl
|
||||
@@ -0,0 +1,4 @@
|
||||
{{ $shell := promptBoolOnce . "features.shell" "Do you want to install the Fish shell?" true }}
|
||||
|
||||
[data.features]
|
||||
shell = {{ $shell | quote }}
|
||||
@@ -0,0 +1,3 @@
|
||||
{{- if not .features.shell }}
|
||||
.config/fish
|
||||
{{- end }}
|
||||
+2
-1
@@ -46,4 +46,5 @@ echo -e "\e[1;34mRunning the playbook...\e[0m"
|
||||
ANSIBLE_CONFIG="$ANSIBLE_ROOT/ansible.cfg" \
|
||||
"$ANSIBLE_ROOT/.venv/bin/ansible-playbook" \
|
||||
"$ANSIBLE_ROOT/playbook.yaml" \
|
||||
--extra-vars "$(chezmoi data --format=json)"
|
||||
--extra-vars "$(chezmoi data --format=json)" \
|
||||
--ask-become-pass
|
||||
@@ -11,7 +11,6 @@
|
||||
- chezmoi is mapping
|
||||
fail_msg: 'Pass with: --extra-vars "$(chezmoi data --format=json)"'
|
||||
|
||||
- name: 'Example: access the "user" fields'
|
||||
ansible.builtin.debug:
|
||||
msg:
|
||||
- "user: {{ chezmoi.username | default('n/a') }}"
|
||||
roles:
|
||||
- role: shell
|
||||
when: features.shell == true
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
- name: Install Fish shell on Arch
|
||||
become: true
|
||||
ansible.builtin.pacman:
|
||||
name: fish
|
||||
when: chezmoi.osRelease.id == "arch"
|
||||
Reference in New Issue
Block a user