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

Enhancement: show username and hostname #82

Open
wsh3776 opened this issue Oct 25, 2020 · 6 comments
Open

Enhancement: show username and hostname #82

wsh3776 opened this issue Oct 25, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@wsh3776
Copy link

wsh3776 commented Oct 25, 2020

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.

@wsh3776 wsh3776 added the enhancement New feature or request label Oct 25, 2020
@ethancedwards8
Copy link
Member

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
Copy link

qifei9 commented Nov 26, 2020

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
Copy link

osbm commented Jul 3, 2024

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

@osbm
Copy link

osbm commented Jul 3, 2024

Can we reopen this issue? @ethancedwards8

@ethancedwards8 ethancedwards8 reopened this Jul 3, 2024
@Theoreticallyhugo
Copy link
Contributor

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
Copy link

osbm commented Aug 19, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

5 participants