View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000323 | My infrastructure | General | public | 2025-09-18 12:19 | 2025-09-28 13:27 |
| Reporter | dvl | Assigned To | dvl | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Summary | 0000323: ugly shell prompt in /jails/freshports | ||||
| Description |
[12:17 r720-02-ingress01 dvl ~] % sudo jexec freshports
[%F{cyan}%B%T%b%f %F{magenta}%m%b%f %F{green}%B%n%b%f %F{magenta}%B%~%b%f] %#%b%f sh
[%F{cyan}%B%T%b%f %F{magenta}%m%b%f %F{green}%B%n%b%f %F{magenta}%B%~%b%f] %#%b%f csh
root@freshports:/ # cd
I think it's because of the shell for root. | ||||
| Tags | No tags attached. | ||||
|
|
From https://bsd.network/web/@dvl/115232078421489442 Here is a puzzle. when I become root, in most jails I've tried, it looks like this:
[17:07 r730-03 dvl ~] % sudo jexec empty
[%F{cyan}%B%T%b%f %F{magenta}%m%b%f %F{green}%B%n%b%f %F{magenta}%B%~%b%f] %#%b%f
Or even from an ssh session:
[%F{cyan}%B%T%b%f %F{magenta}%m%b%f %F{green}%B%n%b%f %F{magenta}%B%~%b%f] %#%b%f echo $SHELL
/bin/sh
Problem is, I don't want that. And I cannot find where that prompt is set. Oh wait, it's coming from my shell: [17:09 empty dvl ~] % sudo su -l # [17:11 r730-03 dvl ~] % echo $SHELL /usr/local/bin/zsh [17:12 r730-03 dvl ~] % export PS1="no prompt " no prompt sudo jexec empty no prompt hostname empty.int.unixathome.org no prompt That seems to be ... annoying. Ideas? |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2025-09-18 12:19 | dvl | New Issue | |
| 2025-09-18 12:19 | dvl | Status | new => assigned |
| 2025-09-18 12:19 | dvl | Assigned To | => dvl |
| 2025-09-19 17:19 | dvl | Note Added: 0000418 | |
| 2025-09-19 17:19 | dvl | Note Edited: 0000418 | |
| 2025-09-28 13:27 | dvl | Status | assigned => closed |
| 2025-09-28 13:27 | dvl | Resolution | open => fixed |