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

[feature request] change tab color and label when running as root/su #507

Open
drkmc opened this issue May 9, 2023 · 0 comments
Open

[feature request] change tab color and label when running as root/su #507

drkmc opened this issue May 9, 2023 · 0 comments

Comments

@drkmc
Copy link

drkmc commented May 9, 2023

It is helpful to remind users when they have a tab open as root/running su. A second use case is to help users who are working on several hosts or directories remember which tab is used for a task.

Expected Behavior

Changing the tab color (e.g. red with white letters), perhaps prefixing the tab name with some reminder (e.g. on my root user's BASH prompt, before the current time is ⚠) and/or changing the background (I don't recall which terminal used to have a lit mortar round "bomb" when you logged in as root, but it was a hard to miss environmental clue) and/or just listing the current user (as Konsole lets you do--I like being able to show the directory or other data on the tab as it helps) would be very helpful.

Current Behavior

You can change the tab name by hand, but if you are the sort who remembers to do this on a regular basis, you probably don't need this feature.

Possible Solution

Echoing current BASH environment data (e.g. host, user (e.g. output of whoami), directory (pwd), what's running in the foreground, etc.) info like how konsole does it would be a partial and welcome addition.
Linking a profile to the current effective user would be an option.

Steps to Reproduce (for bugs)

N/A

Context

$ su

$ mkdir mystuff
$ tar -xvzf archive.tar.gz mystuff/

# cd mystuff
bash: cd: mystuff: No such file or directory

🤬

# su
$ chmod ....
System Information
  • Distribution & Version:
  • Kernel:
  • Qt Version:
  • lxqt-build-tools Version:
  • Package version:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant