From 800324be40a73c141b6d55d3443479ba811624bb Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 2 May 2024 07:19:24 +0900 Subject: [PATCH] Add ssh-add to both shells in fish --- home-manager/common/software/cli/fish.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home-manager/common/software/cli/fish.nix b/home-manager/common/software/cli/fish.nix index b902e01f..28890e80 100644 --- a/home-manager/common/software/cli/fish.nix +++ b/home-manager/common/software/cli/fish.nix @@ -6,10 +6,10 @@ enable = true; shellInit = '' set fish_greeting - ''; - interactiveShellInit = '' set EDITOR vim ssh-add > /dev/null &> /dev/null + ''; + interactiveShellInit = '' if not set -q TMUX && not set -q DISABLE_TMUX if tmux has-session -t Main exec tmux attach-session -t Main