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:
		| @@ -273,7 +273,7 @@ _ps1bash() { | ||||
| 	if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | ||||
| 		_prefix="${fg_bold}${fg_red}${_hostname}${r}${fg_red}:${r}${_prefix}" | ||||
| 	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 | ||||
| 		_prefix="${fg_bold}${fg_yellow}$USER${r}${fg_yellow}:${r}${_prefix}" | ||||
| 	fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user