Feat: Add fishshell config files

This commit is contained in:
Bertrand Benjamin 2019-06-09 11:44:40 +02:00
parent 2f7d9b6368
commit a35d204e45
3 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,10 @@
if not functions -q fisher
set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish
fish -c fisher
end
set -Ux EDITOR vim
#fisher add jethrokuan/fzf

2
files/dotfiles/fishfile Normal file
View File

@ -0,0 +1,2 @@
jethrokuan/fzf
oh-my-fish/plugin-bang-bang

View File

@ -53,6 +53,37 @@
when: prompt == 'zsh' when: prompt == 'zsh'
# Fish config # Fish config
- name: Create fish config directory
file:
dest: /home/{{ item.username }}/.config/fish/
state: directory
with_items: "{{ me }}"
when: prompt == 'fish'
- name: Copy config.fish
template:
src: files/dotfiles/config.fish
dest: /home/{{ item.username }}/.config/fish/
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
when: prompt == 'fish'
register: fishconfig
- name: Copy fisher plugin list
template:
src: files/dotfiles/fishfile
dest: /home/{{ item.username }}/.config/fish/
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
when: prompt == 'fish'
register: fishplugin
- name: Run fisher update
shell: fisher
become_user: "{{ me }}"
when: fishconfig.changed or fishplugin.changed
# Vim config # Vim config
- name: Copy .vim/ - name: Copy .vim/