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 Sep 16, 2023
1 parent 9559536 commit 8fcc095
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
27 changes: 27 additions & 0 deletions playbooks/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,30 @@
- include_tasks: ohmyzsh.yml
- include_tasks: homesick.yml
- include_tasks: plugins.yml
- include_tasks: ohmyfish.yml
tags: fish

- name: Clone Vim Plugin Manager - Vundle
git:
repo: https://github.com/gmarik/Vundle.vim.git
dest: ~/.vim/bundle/vundle
version: master
tags: vim

- name: Install Tmux Plugin Manager
git:
repo: https://github.com/tmux-plugins/tpm
dest: ~/.tmux/plugins/tpm
version: master
tags: tmux

- name: Install Tmux Plugins
command: tmux source ~/.tmux.conf && ~/.tmux/plugins/tpm/bin/install_plugins
ignore_errors: true
when: true
tags: tmux

- name: Install/Update Vim Plugins
command: vim +PluginInstall! +qall
when: true
tags: vim
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 8fcc095

Please sign in to comment.