This commit is contained in:
Marko Rakamaric 2023-12-19 15:02:25 +01:00 committed by GitHub
commit cb671720e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -33,7 +33,13 @@ _get_user_tmux_conf() {
}
_tmux_conf_contents() {
user_config=$(_get_user_tmux_conf)
if [ -n "$TMUX_CONF_FILE" ]; then
user_config="$TMUX_CONF_FILE"
else
user_config=$(_get_user_tmux_conf)
fi
cat /etc/tmux.conf "$user_config" 2>/dev/null
if [ "$1" == "full" ]; then # also output content from sourced files
local file