Giter Club home page Giter Club logo

Comments (7)

greymd avatar greymd commented on May 18, 2024 2

I came up with a terrible idea 👼
Open new tmux sessions and set the session name on the destination server.
A small bar that has its host name can be placed on each pane !

xpanes -c 'ssh -t {} "tmux new -s {}"' cac0{1..6}

screen shot 2018-03-20 at 18 53 09

Just a kidding, hahaha.

from tmux-xpanes.

greymd avatar greymd commented on May 18, 2024 2

It seems that tmux 2.3 and upper version got the feature to customize each pane's border design with pane-border-format property. It might be possible to display the hostname.
Stay tuned.

from tmux-xpanes.

greymd avatar greymd commented on May 18, 2024 2

@linuxmail
New option -t was released 👍

v3new

https://github.com/greymd/tmux-xpanes/releases

from tmux-xpanes.

paxperscientiam avatar paxperscientiam commented on May 18, 2024 1

To customize this title, I've found that this function works for setting a custom xpane title:

function title {
    echo -ne "\033]0;"$*"\007"
}

Example I use with an iTerm profile:

command xpanes -t -d -l eh -c "{}" "title money && emacs -s money -- $LEDGER_FILE_PERSONAL" "title accounting && clear"

source: https://superuser.com/a/599156

from tmux-xpanes.

greymd avatar greymd commented on May 18, 2024

Hi @linuxmail ,
Thank you for using tmux-xpanes 😸 !

put a small bar under every pane

As far as I know, both tmux and tmux-xpanes do not have such the feature for now.
But I can understand the matter, and I think it would be really helpful if such the feature existed.

FYI, usually, I update PS1 environment variable when I face same issue.
If you use bash, it may be helpful.

$ ssh -t host01 'export PS1="[host01] \W $ "; bash --norc -i'

It puts the "host01" at the beginning of the interactive screen like this.

[host01] ~ $ 

Therefore, this command line would put the target hostname at the beginning of each pane.
It may help you identify the pane and its target host.

$ xpanes -c 'ssh -t {} "export PS1=\"{} \W $ \";bash --norc -i"' {host01..host20}

from tmux-xpanes.

linuxmail avatar linuxmail commented on May 18, 2024

hi,

whoooo, its incredible 🥇

from tmux-xpanes.

linuxmail avatar linuxmail commented on May 18, 2024

WHOOOOO that is sooo whooo AWESOME. Thank you so much !!

from tmux-xpanes.

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.