On Mon, 13 May 2024 13:45:51 +0530 Danish Prakash <danish.prakash(a)suse.com> wrote:I currently have these behaviours with default prompts: - Alpine: host:~$ pasta host:~# - Debian: user@host:~$ pasta root@host:~# - Fedora: [user@host ~]$ pasta [root@host ~]# - openSUSE: user@host:~> pasta host:~ # so I generally have a hint of something going on, but in any case, changing the hostname is helpful for unfamiliar users or even just for the pasta-in-pasta case I mentioned.But we could still retain the existing hostname and prefix with something like 'pasta-on-' (sure, we would need to truncate at 63 characters, but it shouldn't be a common case). What do you think?That sounds like a good idea. I didn't realize you'd be running pasta-in-pasta.. but that's reasonable. Though this will be helpful, I'm not entirely sure if this would override the prompts that many have set. At least my rudimentary shell prompt doesn't recognize the pasta user namespace and continues to show the same old prompt. I hope I'm the only one having this issue.Sure, thanks, looking forward to it! -- StefanoWhat I can't tell from the prompt, though, is at what "level" I'm at (at least pasta-in-pasta is something I try very commonly to reproduce pasta's behaviour with particular network setups). Having root@pasta-on-pasta-on-machine would be a nice plus.But in general, this idea sounds good, I'd like to take a shot at this, and I can send over the patch for you to test once I'm done. What do you think?
At least my rudimentary shell prompt doesn't recognize the pasta user namespace and continues to show the same old prompt. I hope I'm the only one having this issue.Sorry for the confusion, it was just me indeed. I was missing a particular shell sequence expansion from my prompt; fixed now[1]. [1] - https://github.com/danishprakash/dotfiles/commit/3a226744dba3189bf94f40a857… On Mon, May 13, 2024 at 4:52 PM Stefano Brivio <sbrivio(a)redhat.com> wrote:On Mon, 13 May 2024 13:45:51 +0530 Danish Prakash <danish.prakash(a)suse.com> wrote:I currently have these behaviours with default prompts: - Alpine: host:~$ pasta host:~# - Debian: user@host:~$ pasta root@host:~# - Fedora: [user@host ~]$ pasta [root@host ~]# - openSUSE: user@host:~> pasta host:~ # so I generally have a hint of something going on, but in any case, changing the hostname is helpful for unfamiliar users or even just for the pasta-in-pasta case I mentioned.But we could still retain the existing hostname and prefix with something like 'pasta-on-' (sure, we would need to truncate at 63 characters, but it shouldn't be a common case). What do you think?That sounds like a good idea. I didn't realize you'd be running pasta-in-pasta.. but that's reasonable. Though this will be helpful, I'm not entirely sure if this would override the prompts that many have set. At least my rudimentary shell prompt doesn't recognize the pasta user namespace and continues to show the same old prompt. I hope I'm the only one having this issue.Sure, thanks, looking forward to it! -- StefanoWhat I can't tell from the prompt, though, is at what "level" I'm at (at least pasta-in-pasta is something I try very commonly to reproduce pasta's behaviour with particular network setups). Having root@pasta-on-pasta-on-machine would be a nice plus.But in general, this idea sounds good, I'd like to take a shot at this, and I can send over the patch for you to test once I'm done. What do you think?