40 lines
900 B
Nix
40 lines
900 B
Nix
{ pkgs, config, ... }:
|
|
{
|
|
programs.fish = {
|
|
enable = true;
|
|
|
|
shellAbbrs = {
|
|
battery = "acpi";
|
|
};
|
|
|
|
shellAliases = {
|
|
cat = "bat";
|
|
df = "df -h";
|
|
du = "du -h";
|
|
duh = "du -hd 1"; # short for du here
|
|
pdf = "zathura --fork"; # Open a pdf reader
|
|
};
|
|
|
|
# with pkgs.fishPlugins;
|
|
plugins = [
|
|
# 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;
|
|
};
|
|
|
|
satellite.persistence.at.state.apps.fish.directories = [
|
|
"${config.xdg.dataHome}/fish"
|
|
"${config.xdg.dataHome}/z" # The z fish plugin
|
|
];
|
|
}
|