feat: expanded fish configuration
Refactored fish configuration values into separate directory Created fish init shell code for nh and zoxide Reverted removal of cd=z alias since it works now
This commit is contained in:
parent
dbba4a63e0
commit
28506968d7
5 changed files with 258 additions and 4 deletions
|
@ -1,34 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.myShells.fish;
|
||||
in
|
||||
with lib; {
|
||||
options = {
|
||||
myShells.fish = {enable = mkEnableOption "Enables fish and components.";};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAliases = import ./aliases {inherit pkgs;};
|
||||
plugins = [
|
||||
{
|
||||
name = "z";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "jethrokuan";
|
||||
repo = "z";
|
||||
rev = "ddeb28a7b6a1f0ec6dae40c636e5ca4908ad160a";
|
||||
sha256 = "0c5i7sdrsp0q3vbziqzdyqn4fmp235ax4mn4zslrswvn8g3fvdyh";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "plugin-git";
|
||||
src = pkgs.fishPlugins.plugin-git.src;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue