From 9e711955c5bd523d639eaa852d4f629c4ed03bdb Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Thu, 4 Jan 2024 10:48:11 +0100 Subject: [PATCH] now cloning the oh my fish framework using ansible git module --- ansible/roles/fish/files/fish/config.fish | 5 ----- ansible/roles/fish/tasks/main.yml | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ansible/roles/fish/files/fish/config.fish b/ansible/roles/fish/files/fish/config.fish index 0f98539..fa42e3c 100644 --- a/ansible/roles/fish/files/fish/config.fish +++ b/ansible/roles/fish/files/fish/config.fish @@ -5,11 +5,6 @@ if status is-interactive # Set the editor to use vim set --export --global EDITOR nvim - # Install OMF if it is not already - if test ! -d ~/.local/share/omf - curl -L https://get.oh-my.fish | fish - end - # Alias for the cat command alias cat="bat --theme ColdDark-Cold" diff --git a/ansible/roles/fish/tasks/main.yml b/ansible/roles/fish/tasks/main.yml index d8eede5..3dbcc73 100644 --- a/ansible/roles/fish/tasks/main.yml +++ b/ansible/roles/fish/tasks/main.yml @@ -19,6 +19,12 @@ delete: true src: fish dest: "/$HOME/.config" +- name: Clone Oh My Fish + git: + repo: https://github.com/oh-my-fish/oh-my-fish + depth: 1 + single_branch: true + update: true - name: Setup OMF synchronize: delete: true