add fish config
This commit is contained in:
parent
054907079d
commit
fa4b42d743
2 changed files with 27 additions and 8 deletions
27
programs/fish.nix
Normal file
27
programs/fish.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue