Browse Source

nested miaou prompt

master
pvincent 11 months ago
parent
commit
2168081372
  1. 5
      bash.bashrc

5
bash.bashrc

@ -68,7 +68,7 @@ __prompt_command() {
if [[ -n ${container_hostname:-} ]]; then
PS1+="${Gra}[LXC:${R}"
local host=$container_hostname
local host=$(builtin echo $container_hostname | tr ' ' ':')
case ${host:0:4} in
'beta')
PS1+="${Yel}"
@ -154,7 +154,8 @@ __vte_osc7() {
VTE_INFO="${HOSTNAME:-}"
if [[ -n ${container_hostname:-} ]]; then
VTE_INFO="${container_hostname}"
local host=$(builtin echo $container_hostname | tr ' ' ':')
VTE_INFO="$host:$HOSTNAME"
fi
printf "\[\033]7;file://%s%s\a\]" "${VTE_INFO}" "$(__vte_urlencode "${PWD}")"

Loading…
Cancel
Save