From 84daae10281946e9e6123bb0073b78f10257be8c Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Tue, 6 Mar 2018 23:37:26 +0100 Subject: [PATCH] Updated ssh config for moving computers And fixed a slight VTE bug --- bash/bash.d/{ps1 => prompt_command} | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) rename bash/bash.d/{ps1 => prompt_command} (95%) diff --git a/bash/bash.d/ps1 b/bash/bash.d/prompt_command similarity index 95% rename from bash/bash.d/ps1 rename to bash/bash.d/prompt_command index fdfddf9..b1bbab3 100644 --- a/bash/bash.d/ps1 +++ b/bash/bash.d/prompt_command @@ -17,6 +17,13 @@ if [ -n "$force_color_prompt" ]; then fi fi +# Make sure we have the VTE thing when we define our prompt command + +if [ $TILIX_ID ] || [ $VTE_VERSION ]; then + + source /etc/profile.d/vte.sh +fi + # Old PS1 #if [ "$color_prompt" = yes ]; then # PS1='${debian_chroot:+($debian_chroot)}\[\033[00;32m\]\u@\H\[\033[00m\] \[\033[0;33;40m\](\t)\[\033[00m\] \[\033[01;34m\]\[$(ls |wc -l)\]@\W\[\033[00m\]:\$ ' @@ -37,6 +44,12 @@ function color() { fi } +function vte_thing() { + if [ $TILIX_ID ] || [ $VTE_VERSION ]; then + __vte_osc7 + fi +} + export PROMPT_COMMAND=__prompt_command function __prompt_command() { @@ -78,6 +91,7 @@ function __prompt_command() { 'tinsmith') PS1+="${Gre}\h${RCol}";; 'blacksmith') PS1+="${Blu}\h${RCol}";; 'locksmith') PS1+="${Pur}\h${RCol}";; + 'gunsmith') PS1+="${Red}\h${RCol}";; 'lilo'*) PS1+="${BWhi}\h${RCol}";; 'hg'*) PS1+="${BRed}\h${RCol}";; 'gouda'|'bunnik'|'houten'|'zandberg'|'bussum'|'baarn') PS1+="${Gre}${On_Whi}HEF:${Blu}${On_Whi}\h${RCol}";; @@ -116,6 +130,9 @@ function __prompt_command() { #UID PS1+=':\$ ' +# Something for VTE + PS1+=$(vte_thing) + } function retval() {