Give toolbox PS1s the name of their container
TY Fedora Magazine! https://fedoramagazine.org/alternative-way-of-saving-toolboxes-for-later-use/
This commit is contained in:
parent
8a9d9b4a8e
commit
b988e899b1
@ -273,7 +273,7 @@ _ps1bash() {
|
|||||||
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
||||||
_prefix="${fg_bold}${fg_red}${_hostname}${r}${fg_red}:${r}${_prefix}"
|
_prefix="${fg_bold}${fg_red}${_hostname}${r}${fg_red}:${r}${_prefix}"
|
||||||
elif [ -n "$TOOLBOX_PATH" ]; then
|
elif [ -n "$TOOLBOX_PATH" ]; then
|
||||||
_prefix="${fg_bold}${fg_magenta}toolbox${r}${fg_magenta}:${r}${_prefix}"
|
_prefix="${fg_bold}${fg_magenta}$(. /run/.containerenv && echo "$name")${r}${fg_magenta}:${r}${_prefix}"
|
||||||
elif [ "$USER" != "salt" ]; then
|
elif [ "$USER" != "salt" ]; then
|
||||||
_prefix="${fg_bold}${fg_yellow}$USER${r}${fg_yellow}:${r}${_prefix}"
|
_prefix="${fg_bold}${fg_yellow}$USER${r}${fg_yellow}:${r}${_prefix}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user