From 4d8fc0e81083fdb8a997a23ced21f5d292e8546f Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sun, 15 Apr 2018 20:03:29 +0200 Subject: [PATCH] [tmux] shells under tmux start with SHLVL 1 This is necessary to make the visibility of nested shells (introduced in 30c5b52) work correctly when running inside tmux. --- tmux.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tmux.conf b/tmux.conf index 817da83..0e8e85d 100644 --- a/tmux.conf +++ b/tmux.conf @@ -44,6 +44,9 @@ set -g status-justify centre set -g status-left '@#h ⧉ #S' # @host ⧉session set -g status-right '%Y-%m-%d %a %H:%M' # date, weekday, time +# Make sure we always start at 1, even when invoked from a wrapper script +set-environment -g SHLVL 1 + # # Colors #