|
|
@ -66,7 +66,7 @@ __prompt_command() { |
|
|
|
|
|
|
|
PS1='' |
|
|
|
|
|
|
|
if [[ $container == 'lxc' ]]; then |
|
|
|
if [[ -n ${container_hostname:-} ]]; then |
|
|
|
PS1+="${Gra}[LXC:${R}" |
|
|
|
local host=$container_hostname |
|
|
|
case ${host:0:4} in |
|
|
@ -153,7 +153,7 @@ __vte_osc7() { |
|
|
|
# https://unix.stackexchange.com/questions/28827/why-is-my-bash-prompt-getting-bugged-when-i-browse-the-history#28828 |
|
|
|
|
|
|
|
VTE_INFO="${HOSTNAME:-}" |
|
|
|
if [[ $container == 'lxc' ]]; then |
|
|
|
if [[ -n ${container_hostname:-} ]]; then |
|
|
|
VTE_INFO="${container_hostname}" |
|
|
|
fi |
|
|
|
printf "\[\033]7;file://%s%s\a\]" "${VTE_INFO}" "$(__vte_urlencode "${PWD}")" |
|
|
|