Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use env TMUX_CONF_FILE to override default tmux.conf locations, #205 #270

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion scripts/helpers/plugin_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down