Fish, add nix-your-shell to fish
This commit is contained in:
parent
f5962d1d27
commit
2cde55691b
1 changed files with 4 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
functionModule = with lib.types; submodule {
|
functionModule = with lib.types; submodule {
|
||||||
options = {
|
options = {
|
||||||
|
|
@ -21,6 +21,9 @@ in {
|
||||||
config = lib.mkIf config.fish.enable {
|
config = lib.mkIf config.fish.enable {
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
interactiveShellInit = ''
|
||||||
|
${pkgs.nix-your-shell}/bin/nix-your-shell fish | source
|
||||||
|
'';
|
||||||
functions = {
|
functions = {
|
||||||
fish_greeting = "";
|
fish_greeting = "";
|
||||||
fish_prompt = ''
|
fish_prompt = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue