dracula / tmux

🧛🏻‍♂️ Dark theme for tmux
https://draculatheme.com/tmux
MIT License
643 stars 294 forks source link

Enhancement: show username and hostname #82

Open wsh3776 opened 3 years ago

wsh3776 commented 3 years ago

Describe the feature you'd like

Is it possible to add a setting that can show the current username and hostname

Describe risks you've considered

I think it wouldn't have much risk.

Describe alternatives you've considered

I can use echo user and hostname to show this, but can I show it in the bottom status bar. I often login the remote machine. So if I can see which host I am current in, it would be nice!

image

I think it can be achieved by edit the script.sh, but I am not sure how to do it.

ethancedwards8 commented 3 years ago

Yeah we could do this, but I don't really see how useful it is. You could literally just type whoami and hostname and get those. We need to reduce feature bloat because now this project is becoming quite large and we should focus on the things that are actually needed. Like working with operating systems on than Linux and Mac, better compatibility with other plugins, color theming, etc.

Closing unless I can get a really good reason on why we need these. :)

qifei9 commented 3 years ago

I work on my laptop and a remote machine connect through ssh from my laptop at the same time. Thus I often have multiple tmux session running, some locally and some remotely. Therefore, I hope the status bar could tell me where the session is running, locally or remotely. Although I could have these info in the zsh prompt, the prompt is not always visible, for example in vim.

osbm commented 2 months ago

What @qifei9 describes is exactly why i need this feature. Is there a way around to do this?

osbm commented 2 months ago

Can we reopen this issue? @ethancedwards8

Theoreticallyhugo commented 1 month ago

using set -g @dracula-show-left-icon "#H" one can get the host name of the machine where the session runs in the top left. what i find even more useful is set -g @dracula-show-left-icon "#H | #S" which tells me on which machine i am and what the name of the session is, since some of my servers have multiple sessions for different long run projects.

i think that with this in mind, we should be able to close this issue again. mby i should write about this in the docs #278

osbm commented 1 month ago

@Theoreticallyhugo your answer is very interesting i will try that out.

I should mention, i was able to meet my need with just by doing this:

set -g @dracula-show-left-icon hostname