aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-13 10:01:29 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-13 10:01:29 -0700
commitfc54399ab9b348bf1dce259f2f8e2f09ce8dbe24 (patch)
tree58cd82575061f137005bc581b69296ccae033168
parentbackups: rename system to host (diff)
downloadinfra-fc54399ab9b348bf1dce259f2f8e2f09ce8dbe24.tar.gz
fish: start tmux on terminal start
-rw-r--r--home/fish/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/home/fish/default.nix b/home/fish/default.nix
index ffb8f31..a3a5e1e 100644
--- a/home/fish/default.nix
+++ b/home/fish/default.nix
@@ -8,6 +8,12 @@ in {
enable = true;
interactiveShellInit = ''
set fish_greeting
+
+ # Tmux on terminal start
+ if status is-interactive
+ and not set -q TMUX
+ exec tmux
+ end
'';
};
}