mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-12-22 09:13:33 +01:00
Updated ssh config for moving computers And fixed a slight VTE bug
This commit is contained in:
parent
ced6cf6d6a
commit
84daae1028
1 changed files with 17 additions and 0 deletions
|
@ -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() {
|
Loading…
Reference in a new issue