New backup 2025-04-17 14:15:02
This commit is contained in:
parent
a2c481e13c
commit
84c6f1eaf2
2 changed files with 8 additions and 5 deletions
|
@ -13,8 +13,8 @@ function get_window_name() {
|
||||||
output="${icons[${s}]} ${output}"
|
output="${icons[${s}]} ${output}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ ${#output} -ge 30 ];then
|
if [ ${#output} -ge 35 ];then
|
||||||
echo "${output:0:30}..."
|
echo "${output:0:30}…"
|
||||||
else
|
else
|
||||||
echo "${output}"
|
echo "${output}"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -122,8 +122,11 @@ export prompt_prefix=`awk '{$1=$1};1' <<< "${prompt_prefix}"`
|
||||||
PS1='\[\e[1m\e[95m\]${prompt_prefix}\[\e[m\]${debian_chroot:+($debian_chroot)}\[\e[01;32m\]\u@\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\]\n\$ '
|
PS1='\[\e[1m\e[95m\]${prompt_prefix}\[\e[m\]${debian_chroot:+($debian_chroot)}\[\e[01;32m\]\u@\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\]\n\$ '
|
||||||
|
|
||||||
#Alacritty custom window title
|
#Alacritty custom window title
|
||||||
if [ "$TERM" = alacritty ];then
|
#if [ "$TERM" = alacritty ];then
|
||||||
PROMPT_COMMAND='ala_title=`pwd | sed "s|${HOME}|~|"`;echo -ne "\e]2;${ala_title} — Alacritty\007"'
|
## pwd_length=14
|
||||||
fi
|
## pwd_symbol="…"
|
||||||
|
# PROMPT_COMMAND='ala_title=`pwd | sed "s|${HOME}|~|"`;echo -ne "\e]2;${ala_title} — Alacritty\007"'
|
||||||
|
## echo 'test'
|
||||||
|
#fi
|
||||||
|
|
||||||
bind TAB:menu-complete
|
bind TAB:menu-complete
|
||||||
|
|
Loading…
Add table
Reference in a new issue