aboutsummaryrefslogtreecommitdiff
path: root/home/fish/default.nix
blob: a3a5e1ef37a71aa8db7acc943da123bcc0ca40ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, lib, pkgs, ... }:
let cfg = config.my.home.fish;
in {
  options.my.home.fish = with lib; {
    enable = mkEnableOption "fish configuration";
  };
  config.programs.fish = lib.mkIf cfg.enable {
    enable = true;
    interactiveShellInit = ''
      set fish_greeting

      # Tmux on terminal start
      if status is-interactive
      and not set -q TMUX
          exec tmux
      end
    '';
  };
}