Code Monkey home page Code Monkey logo

Comments (4)

gpakosz avatar gpakosz commented on June 1, 2024 1

This is because the .local file is used for 2 purposes

  • Defining tmux_conf_... variables
  • Overriding bindings

When the top level .conf file is sourced, it then sources the .local file to know the values of the tmux_conf_... variables, then proceeds with customizing tmux: in this case, it detects that tmux-256color is available and decides to use it. It also updates some bindings. Finally, it scans the .local file again for set, bind and unbind directives marked with #!important (inspired by CSS), and applies these in a last pass.

from .tmux.

gpakosz avatar gpakosz commented on June 1, 2024

Hello @QiMingZhenFan 👋

You need to either

  • Troubleshoot why tmux-256color doesn't work for you, as Oh my tmux! detects it and decides to use it
  • Use set -g default-terminal xterm-256color #!important in your .local customization file

from .tmux.

QiMingZhenFan avatar QiMingZhenFan commented on June 1, 2024

@gpakosz Thanks for your reply!

I happened to read your earlier reply in other issue. I tried this command set -g default-terminal xterm-256color #!important, it worked! But without #!important, this command still makes no changes to ${TERM}, why is this?

screenshot-20240314-182606

from .tmux.

QiMingZhenFan avatar QiMingZhenFan commented on June 1, 2024

Oh, I think I understand. That's cool! Thank you very much for your detailed and kindly explanation! :D

from .tmux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.