From 4acf5208a36c2ea07eaadf7c6cbd23c16fd4d1c0 Mon Sep 17 00:00:00 2001 From: soblin Date: Wed, 14 Jan 2026 15:22:44 +0900 Subject: [PATCH 1/2] fix(ansible): fix fish .config/fish initializatin Signed-off-by: soblin --- ansible/roles/dev_tools/tasks/commands/fish.yaml | 2 +- install.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ansible/roles/dev_tools/tasks/commands/fish.yaml b/ansible/roles/dev_tools/tasks/commands/fish.yaml index 17371e7..2b497e5 100644 --- a/ansible/roles/dev_tools/tasks/commands/fish.yaml +++ b/ansible/roles/dev_tools/tasks/commands/fish.yaml @@ -28,7 +28,7 @@ src: "{{ (playbook_dir + '/../.config/fish') | realpath }}" dest: "{{ lookup('env', 'HOME') }}/.config/fish" state: link - when: not fish_config_exists.stat.exists + when: not fish_config_exists.stat.islnk # TODO: tmux-mem-cpu-load - name: install plugins from fish_plugins file diff --git a/install.sh b/install.sh index 29567c3..9c4a32a 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,8 @@ #!/bin/bash -e +# /home/ +home_dir=`realpath ~` + cur_dir=`pwd` function create_symlink_f() { From f22a08b0d3315f44dff4a3a0eef1ec87a499ebe0 Mon Sep 17 00:00:00 2001 From: soblin Date: Wed, 14 Jan 2026 17:55:01 +0900 Subject: [PATCH 2/2] fix Signed-off-by: soblin --- ansible/roles/dev_tools/tasks/commands/fish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/dev_tools/tasks/commands/fish.yaml b/ansible/roles/dev_tools/tasks/commands/fish.yaml index 2b497e5..d9420e2 100644 --- a/ansible/roles/dev_tools/tasks/commands/fish.yaml +++ b/ansible/roles/dev_tools/tasks/commands/fish.yaml @@ -28,7 +28,7 @@ src: "{{ (playbook_dir + '/../.config/fish') | realpath }}" dest: "{{ lookup('env', 'HOME') }}/.config/fish" state: link - when: not fish_config_exists.stat.islnk + when: (not fish_config_exists.stat.exists) or (not fish_config_exists.stat.islnk) # TODO: tmux-mem-cpu-load - name: install plugins from fish_plugins file