2024-02-05 11:46:52 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2022-03-01 22:19:03 +01:00
|
|
|
}:
|
2024-02-05 11:46:52 +01:00
|
|
|
with lib;
|
|
|
|
let
|
2022-03-01 22:19:03 +01:00
|
|
|
cfg = config.eboskma.programs.fish;
|
2022-04-27 00:21:19 +02:00
|
|
|
in
|
|
|
|
{
|
2021-11-17 16:32:18 +01:00
|
|
|
options.eboskma.programs.fish = {
|
|
|
|
enable = mkEnableOption "Enable fish shell";
|
|
|
|
};
|
|
|
|
|
2022-05-03 18:17:38 +02:00
|
|
|
config = mkIf cfg.enable {
|
2023-09-13 14:50:03 +02:00
|
|
|
programs = {
|
|
|
|
fish = {
|
|
|
|
enable = true;
|
|
|
|
functions = import ./functions.nix { inherit (pkgs) git coreutils; };
|
2021-11-17 16:32:18 +01:00
|
|
|
|
2023-09-13 14:50:03 +02:00
|
|
|
plugins = [
|
|
|
|
{
|
|
|
|
name = "dracula";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "dracula";
|
|
|
|
repo = "fish";
|
|
|
|
rev = "62b109f12faab5604f341e8b83460881f94b1550";
|
|
|
|
sha256 = "0TlKq2ur2I6Bv7pu7JObrJxV0NbQhydmCuUs6ZdDU1I=";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2021-12-18 16:23:14 +01:00
|
|
|
|
2023-09-13 14:50:03 +02:00
|
|
|
shellAliases = {
|
|
|
|
# code = "${pkgs.vscode}/bin/code --enable-features=UseOzonePlatform --ozone-platform=wayland";
|
|
|
|
ls = "${pkgs.eza}/bin/eza -Fb --git";
|
2022-01-13 09:03:22 +01:00
|
|
|
|
2023-09-13 14:50:03 +02:00
|
|
|
vimdiff = mkIf config.eboskma.programs.neovim.enable "nvim -d";
|
|
|
|
vim = mkIf config.eboskma.programs.neovim.enable "nvim";
|
|
|
|
vi = mkIf config.eboskma.programs.neovim.enable "nvim";
|
|
|
|
};
|
2024-02-05 11:46:52 +01:00
|
|
|
interactiveShellInit = "";
|
2023-09-13 14:50:03 +02:00
|
|
|
};
|
2021-11-17 16:32:18 +01:00
|
|
|
|
2023-09-13 14:50:03 +02:00
|
|
|
fzf = {
|
|
|
|
enable = true;
|
|
|
|
enableFishIntegration = true;
|
|
|
|
changeDirWidgetCommand = "${pkgs.fd}/bin/fd -type d";
|
|
|
|
defaultCommand = "${pkgs.fd}/bin/fd -type f";
|
|
|
|
defaultOptions = [
|
|
|
|
"--cycle"
|
|
|
|
"--layout=reverse"
|
|
|
|
"--border"
|
|
|
|
"--height=90%"
|
|
|
|
"--preview-window=wrap"
|
|
|
|
"--marker='*'"
|
|
|
|
];
|
|
|
|
fileWidgetCommand = "${pkgs.fd}/bin/fd -type f";
|
|
|
|
};
|
2021-11-17 16:32:18 +01:00
|
|
|
|
2023-09-13 14:50:03 +02:00
|
|
|
direnv = {
|
|
|
|
enable = true;
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
};
|
2021-11-25 17:18:13 +01:00
|
|
|
|
2023-09-13 14:50:03 +02:00
|
|
|
zoxide = {
|
|
|
|
enable = true;
|
|
|
|
enableFishIntegration = true;
|
|
|
|
};
|
2021-11-25 17:18:13 +01:00
|
|
|
};
|
2021-11-17 16:32:18 +01:00
|
|
|
};
|
|
|
|
}
|