Skip to content

Commit

Permalink
Add installation and setup for fish shell
Browse files Browse the repository at this point in the history
  • Loading branch information
ylogx committed May 26, 2023
1 parent ade58aa commit d7f604e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playbooks/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
- include_tasks: ohmyzsh.yml
- include_tasks: homesick.yml
- include_tasks: ohmyfish.yml
tags: fish

- name: Clone Vim Plugin Manager - Vundle
git:
Expand Down
21 changes: 21 additions & 0 deletions playbooks/roles/common/tasks/ohmyfish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
- name: Install fish shell with package manager
package:
name: fish
state: present
tags: fish

#- name: Check if oh-my-fish is already installed
# stat:
# path: $HOME/.local/share/omf
# register: omf_directory
# tags: fish

- name: Add ohmyfish package
become: false
command:
cmd: fish -c 'curl -L https://get.oh-my.fish | fish'
creates: $HOME/.local/share/omf
#when: not omf_directory.stat.isdir
ignore_errors: true
tags: fish

0 comments on commit d7f604e

Please sign in to comment.