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

sensible.tmux doesn't run #48

Open
alpha0mega96 opened this issue Mar 29, 2019 · 2 comments
Open

sensible.tmux doesn't run #48

alpha0mega96 opened this issue Mar 29, 2019 · 2 comments

Comments

@alpha0mega96
Copy link

Error message reads:
unknown-option: default-terminal

@hholst80
Copy link

hholst80 commented Jul 6, 2019

Which version of tmux are you using?

@hholst80
Copy link

hholst80 commented Jul 6, 2019

I think this is related to the changed handling of default-terminal

holst@hholst-lt:~/.tmux/plugins/tmux-sensible$ git diff sensible.tmux
diff --git a/sensible.tmux b/sensible.tmux
index 5cf2af6..9704820 100755
--- a/sensible.tmux
+++ b/sensible.tmux
@@ -158,4 +158,4 @@ main() {
                        tmux display-message "Sourced .tmux.conf!"'
        fi
 }
-main
+#main
holst@hholst-lt:~/.tmux/plugins/tmux-sensible$ source sensible.tmux
holst@hholst-lt:~/.tmux/plugins/tmux-sensible$ main
unknown option: default-terminal
holst@hholst-lt:~/.tmux/plugins/tmux-sensible$ vi sensible.tmux
holst@hholst-lt:~/.tmux/plugins/tmux-sensible$ git diff sensible.tmux
diff --git a/sensible.tmux b/sensible.tmux
index 5cf2af6..c9db0f3 100755
--- a/sensible.tmux
+++ b/sensible.tmux
@@ -99,9 +99,9 @@ main() {
        fi

        # upgrade $TERM, tmux 1.9
-       if option_value_not_changed "default-terminal" "screen"; then
-               tmux set-option -g default-terminal "screen-256color"
-       fi
+       #if option_value_not_changed "default-terminal" "screen"; then
+       #       tmux set-option -g default-terminal "screen-256color"
+       #fi
        # upgrade $TERM, tmux 2.0+
        if server_option_value_not_changed "default-terminal" "screen"; then
                tmux set-option -s default-terminal "screen-256color"
@@ -158,4 +158,4 @@ main() {
                        tmux display-message "Sourced .tmux.conf!"'
        fi
 }
-main
+#main
holst@hholst-lt:~/.tmux/plugins/tmux-sensible$ source sensible.tmux
holst@hholst-lt:~/.tmux/plugins/tmux-sensible$ main
holst@hholst-lt:~/.tmux/plugins/tmux-sensible$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants