integrate tmux further

This commit is contained in:
Anthony Rodriguez 2024-08-26 15:08:32 +02:00
parent 35f7b81ec7
commit 83fdeb0016
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
2 changed files with 9 additions and 9 deletions

View file

@ -42,4 +42,5 @@
tmuxPlugins.yank tmuxPlugins.yank
]; ];
}; };
programs.fzf.tmux.enableShellIntegration = true;
} }

View file

@ -6,18 +6,17 @@
interactiveShellInit = '' interactiveShellInit = ''
set fish_greeting # Disable greeting set fish_greeting # Disable greeting
fish_vi_key_bindings # Enable Vi mode fish_vi_key_bindings # Enable Vi mode
fish_config theme choose "Catppuccin Frappe"
function fzf --wraps=fzf --description="Use fzf-tmux if in tmux session"
if set --query TMUX
fzf-tmux $argv
else
command fzf $argv
end
end
''; '';
shellAbbrs = { cd = "z"; ngc = "sudo nix-collect-garbage -d"; }; shellAbbrs = { cd = "z"; ngc = "sudo nix-collect-garbage -d"; };
plugins = [ { name = "fzf"; src = pkgs.fishPlugins.fzf.src; } ]; plugins = [ { name = "fzf"; src = pkgs.fishPlugins.fzf.src; } ];
}; };
# Fetch the Catppuccin theme
xdg.configFile."fish/themes/Catppuccin Frappe.theme".source = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "fish";
rev = "a3b9eb5eaf2171ba1359fe98f20d226c016568cf";
sha256 = "sha256-shQxlyoauXJACoZWtRUbRMxmm10R8vOigXwjxBhG8ng=";
} + "/themes/Catppuccin Frappe.theme";
} }