[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.
This commit is contained in:
Fernando Schauenburg 2018-04-15 20:03:29 +02:00
parent e449444252
commit 4d8fc0e810

View file

@ -44,6 +44,9 @@ set -g status-justify centre
set -g status-left '@#h ⧉ #S' # @host ⧉session set -g status-left '@#h ⧉ #S' # @host ⧉session
set -g status-right '%Y-%m-%d %a %H:%M' # date, weekday, time 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 # Colors
# #