Added the Fish shell
This commit is contained in:
1
.chezmoi.toml.tmpl
Symbolic link
1
.chezmoi.toml.tmpl
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
home/.chezmoi.toml.tmpl
|
4
home/.chezmoi.toml.tmpl
Normal file
4
home/.chezmoi.toml.tmpl
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{{ $shell := promptBoolOnce . "features.shell" "Do you want to install the Fish shell?" true }}
|
||||||
|
|
||||||
|
[data.features]
|
||||||
|
shell = {{ $shell }}
|
3
home/.chezmoiignore.tmpl
Normal file
3
home/.chezmoiignore.tmpl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{{- if not .features.shell }}
|
||||||
|
.config/fish
|
||||||
|
{{- end }}
|
@@ -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
|
0
home/private_dot_config/fish/completions/.gitkeep
Normal file
0
home/private_dot_config/fish/completions/.gitkeep
Normal file
0
home/private_dot_config/fish/conf.d/.gitkeep
Normal file
0
home/private_dot_config/fish/conf.d/.gitkeep
Normal file
0
home/private_dot_config/fish/functions/.gitkeep
Normal file
0
home/private_dot_config/fish/functions/.gitkeep
Normal file
0
home/private_dot_config/fish/remove_config.fish
Normal file
0
home/private_dot_config/fish/remove_config.fish
Normal 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') }}"
|
|
||||||
|
5
setup-script/roles/shell/tasks/main.yaml
Normal file
5
setup-script/roles/shell/tasks/main.yaml
Normal file
@@ -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