1
Fork 0
satellite/home/features/cli/fish/default.nix

39 lines
850 B
Nix
Raw Normal View History

2023-11-04 20:18:14 +01:00
{ pkgs, config, ... }:
2023-02-10 00:11:54 +01:00
{
programs.fish = {
enable = true;
shellAbbrs = {
battery = "acpi";
2023-04-27 01:08:20 +02:00
};
shellAliases = {
2023-02-10 00:11:54 +01:00
cat = "bat";
2023-04-27 01:08:20 +02:00
df = "df -h";
du = "du -h";
duh = "du -hd 1"; # short for du here
2023-02-10 00:11:54 +01:00
};
2023-04-27 01:08:20 +02:00
# with pkgs.fishPlugins;
plugins = [
2023-02-10 00:11:54 +01:00
# Jump to directories by typing "z <directory-name>"
{
name = "z";
src = pkgs.fetchFromGitHub {
owner = "jethrokuan";
repo = "z";
rev = "85f863f20f24faf675827fb00f3a4e15c7838d76";
sha256 = "1kaa0k9d535jnvy8vnyxd869jgs0ky6yg55ac1mxcxm8n0rh2mgq";
};
}
];
interactiveShellInit = builtins.readFile ./config.fish;
};
2023-11-04 20:18:14 +01:00
satellite.persistence.at.state.apps.fish.directories = [
"${config.xdg.dataHome}/fish"
"${config.xdg.dataHome}/z" # The z fish plugin
];
2023-02-10 00:11:54 +01:00
}