mirror of
https://github.com/ashhhleyyy/fsh.git
synced 2024-10-05 01:37:45 +00:00
Compare commits
No commits in common. "3b45d2e7c4b77158f5b621772c48a0fea2b80a9a" and "fda28bf44511bc6d0be15f43bb47136b9de9ec00" have entirely different histories.
3b45d2e7c4
...
fda28bf445
2 changed files with 0 additions and 28 deletions
|
@ -11,7 +11,6 @@
|
||||||
overlays.default = final: prev: {
|
overlays.default = final: prev: {
|
||||||
inherit (self.packages.${prev.system}) fsh;
|
inherit (self.packages.${prev.system}) fsh;
|
||||||
};
|
};
|
||||||
homeModules.fsh = import ./home.nix;
|
|
||||||
} // flake-utils.lib.eachDefaultSystem (system:
|
} // flake-utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
|
|
27
home.nix
27
home.nix
|
@ -1,27 +0,0 @@
|
||||||
{ pkgs, lib, config, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.programs.fsh;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.programs.fsh = {
|
|
||||||
enable = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = ''
|
|
||||||
Enables the fsh prompt for the fish shell.
|
|
||||||
programs.fish.enable must also be set to true for this option to have effect.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
home.packages = [ pkgs.fsh ];
|
|
||||||
programs.fish.functions.fish_prompt.body = ''
|
|
||||||
set FSH_LAST_STATUS $status
|
|
||||||
fsh $FSH_LAST_STATUS
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue