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] Update /etc/profile to set remote terminal name on SSH #7755

Open
Fludizz opened this issue Apr 10, 2023 · 0 comments
Open

[ENHANCEMENT] Update /etc/profile to set remote terminal name on SSH #7755

Fludizz opened this issue Apr 10, 2023 · 0 comments

Comments

@Fludizz
Copy link

Fludizz commented Apr 10, 2023

When connecting to a LibreELEC system via SSH, the terminal name is not changed to reflect it being connected to a different system.

To Reproduce

Steps to reproduce the behavior:

  1. Enable SSH on LibreELEC
  2. Connect using your terminal of choice
  3. Window title is not updated to Kodi/LE hostname

Informations

  • LE Version: 11.01
  • Hardware Platform: RPi4

Additional context

Workaround is to create /storage/.profile with the following content:

case "$TERM" in
	xterm*|rxvt*)
		export PS1='\[\e]0;\u@\h: \w\a\]'$PS1
		;;
esac

This will change the terminal window title to match the connected system.

If this can be added to /etc/profile or any of the files under /etc/profile.d/ to make this the default behaviour (as it is for many Linux distro's), that would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants