about summary refs log tree commit diff
path: root/home/shell/fish/interactive.fish
diff options
context:
space:
mode:
Diffstat (limited to 'home/shell/fish/interactive.fish')
-rw-r--r--home/shell/fish/interactive.fish8
1 files changed, 8 insertions, 0 deletions
diff --git a/home/shell/fish/interactive.fish b/home/shell/fish/interactive.fish
new file mode 100644
index 0000000..4adcba8
--- /dev/null
+++ b/home/shell/fish/interactive.fish
@@ -0,0 +1,8 @@
+# Tmux on terminal start, unless we're in a SSH connection
+if status is-interactive
+    if test -z "$SSH_CONNECTION"
+        if not tmux has-session 2>/dev/null; or test -z "$TMUX"
+            exec tmux new-session -A -s 0
+        end
+    end
+end