addon-ssh icon indicating copy to clipboard operation
addon-ssh copied to clipboard

auto-completion of bash shell commands are not working

Open simonepittis opened this issue 1 year ago • 5 comments

auto-completion of bash shell commands are not working on v18.0.0

auto-completion command with TAB work on 17.3.0

simonepittis avatar May 26 '24 15:05 simonepittis

I can confirm I am seeing a related problem in that my .bash_profile is no longer running in 18.0.0.

I suspect the default shell is different between 17.3.0 and 18.0.0.

Having a configuration option to select bash, zsh, etc might be a reasonable path forward.

bakerkj avatar May 26 '24 19:05 bakerkj

Same issue here on version 18.0.0, it seems that I get dropped in a sh shell instead of a zsh shell. Everything works normal if I run zsh to get into a proper zsh shell. Not sure what happened in the latest update

NodeJSmith avatar May 27 '24 02:05 NodeJSmith

Same here- autocompletion, as well as other commands and aliases are not working. It seems the default ash shell is loaded instead of zsh, although zsh is installed and works when its run manually (as mentioned by @NodeJSmith). Somehow zsh is not started when a new terminal session is opened. Restarting the addon, or uninstalling and reinstalling the addon, does not solve the issue for me. Going back to v17.3.0 does run zsh as default shell.

aodtcr avatar May 27 '24 07:05 aodtcr

Same issue for me - unfortunately, I've created https://github.com/hassio-addons/addon-ssh/issues/744#issue-2320081388 before reading this one as the title did not suggest similarity.

VlastiBroucek avatar May 28 '24 09:05 VlastiBroucek

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

github-actions[bot] avatar Jun 28 '24 08:06 github-actions[bot]

ok fixed :-)

easy:

  • edit the file /etc/passwd
  • change from "/bin/sh" to "/bin/zsh" the shell of user root
  • logout

simonepittis avatar Jul 05 '24 09:07 simonepittis

ok fixed :-)

easy:

  • edit the file /etc/passwd
  • change from "/bin/sh" to "/bin/zsh" the shell of user root
  • logout

Only until you restart your HA instance or the add-on... Don't think that etc/passwd is persistent... Or did you try it?

VlastiBroucek avatar Jul 05 '24 09:07 VlastiBroucek

/etc/passwd need to be persistent

simonepittis avatar Jul 05 '24 09:07 simonepittis

/etc/passwd need to be persistent

https://github.com/hassio-addons/addon-ssh/issues/744

VlastiBroucek avatar Jul 05 '24 09:07 VlastiBroucek

ufff :-(

simonepittis avatar Jul 05 '24 09:07 simonepittis

I see this https://github.com/hassio-addons/addon-ssh/pull/755 but not implemented... we waiting

simonepittis avatar Jul 05 '24 09:07 simonepittis