add fish config

This commit is contained in:
uku 2023-11-25 14:54:17 +01:00
parent 054907079d
commit fa4b42d743
Signed by: uku
GPG key ID: 7D01D7B105E77166
2 changed files with 27 additions and 8 deletions

27
programs/fish.nix Normal file
View file

@ -0,0 +1,27 @@
{
pkgs,
lib,
...
}: {
programs.fish.enable = true;
environment.systemPackages = with pkgs; [nix-your-shell];
hm.programs.fish = {
enable = true;
shellInit = ''
set -x EDTIOR nvim
'';
interactiveShellInit = with pkgs; ''
${lib.getExe starship} init fish | source
${lib.getExe nix-your-shell} fish | source
'';
functions = {
fish_greeting = "";
kssh = "${lib.getExe pkgs.kitty} +kitten ssh -- $argv";
};
};
}

View file

@ -8,19 +8,11 @@
neovim
git
curl
nix-your-shell
];
programs = {
ssh.startAgent = true;
fish = {
enable = true;
interactiveShellInit = ''
nix-your-shell fish | source
'';
};
direnv.enable = true;
command-not-found.enable = false;