-
Notifications
You must be signed in to change notification settings - Fork 424
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
FQDN hostname doesn't work #472
Comments
Also |
Thanks for noticing the regression (that was introduced by d9cb55d) and the fix. I applied your fix with d5af671.
The bug is not in bash or in Liquidprompt. It is in The right fix is to fix the operating system. Because this issue doesn't affect only LiquidPrompt. And because portability doesn't imply to workaround all incorrect system configurations. It is much easier to report the issue to the sysadmin to fix it (especially if you already have the credentials to apply the fix yourself) than for me to invent some code that will be very OS dependent and have portability issues. Obviously the bash maintainer has the same position as no such hack exists to make |
Thank for fix!
But using short name in
And futuremore Ubuntu 12 man pages:
Ubuntu 16 man pages same as Debian:
CentOS manual about how to set up FQDN hostname:
Long story short: I'm using short name in Here I have found information that Currently for everyone who use short hostname in |
Fix LP_ENABLE_FQDN regression: s/_LP_HOST_SYMBOL/LP_HOST_SYMBOL/ GH liquidprompt#472
Thanks for this extensive research. |
Sure use Bash internal variable is much better than external program like
One more idea, add something like $LP_FQDN_CMD which by default will be |
…iquidprompt#472 Regression introduced by d9cb55d.
…ed' into feature/calc-cksum-only-if-enabled * origin/feature/calc-cksum-only-if-enabled: Only calculate hash for ssh host color if option is enabled CHANGES: Credit @Rycieos for liquidprompt#461 LP_COLOR_HOST_HASH: simplify Fix computing hostname hash on SunOS don't try to unexport PROMPT_COMMAND on bash < 4.2 (GH liquidprompt#474) Fix LP_ENABLE_FQDN regression: s/_LP_HOST_SYMBOL/LP_HOST_SYMBOL/ GH liquidprompt#472 unexport PROMPT_COMMAND (GH liquidprompt#450, liquidprompt#463) Fix up awk script and make readable CHANGES: release 1.11 ISSUE_TEMPLATE: request shell name
…only-if-enabled * origin/master: CHANGES: Credit @Rycieos for liquidprompt#461 LP_COLOR_HOST_HASH: simplify Fix computing hostname hash on SunOS don't try to unexport PROMPT_COMMAND on bash < 4.2 (GH liquidprompt#474) Fix LP_ENABLE_FQDN regression: s/_LP_HOST_SYMBOL/LP_HOST_SYMBOL/ GH liquidprompt#472 unexport PROMPT_COMMAND (GH liquidprompt#450, liquidprompt#463) Fix up awk script and make readable CHANGES: release 1.11 ISSUE_TEMPLATE: request shell name Conflicts: liquidprompt
…iquidprompt#472 Regression introduced by d9cb55d.
…iquidprompt#472 Regression introduced by d9cb55d.
I read all the links here, lots to think about. I also tested this on Zsh, it shows the exact same behavior as Bash. Here are my thoughts: This is obviously a bug or, more likely, a limitation in both Bash and Zsh. The documentation isn't super clear, but it seems that there are two different things here:
What I think this boils down to is a misunderstanding of what the "long hostname" was when the FQDN option was built into Liquidprompt. The feature works exactly as intended in Bash and Zsh, and therefore also in Liquidprompt, but for Bash the documentation is confusing, and in Liquidprompt it was named incorrectly. The "FQDN" feature in Liquidprompt does not supply the FQDN, as this issue shows. That isn't to say that having a FQDN feature is a bad idea, and I think Bash and Zsh should have such a feature, but they don't. I also think Liquidprompt should have that as a feature as well, but there are two problems with this.
That being said, here is my plan:
|
I'm moving this to v2.1, since v2.0 is getting large and long already, and this mostly depends on #651, which really should wait until after v2.0. |
Shell: bash
Operating system: Debian 7
Liquid Prompt version (tag, commit): master, bea53c0
Some of this changes still not in master
695d629#diff-69154cbf3b77aef00ad6c1c3527a7225L563
I think
${LP_HOST_SYMBOL}
must be used everywhere insidecase "$(_lp_connection)"
instead of${_LP_HOST_SYMBOL}
I mean inssh
too.Currently I have
The text was updated successfully, but these errors were encountered: