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}"
|
||||
fi
|
||||
done
|
||||
if [ ${#output} -ge 30 ];then
|
||||
echo "${output:0:30}..."
|
||||
if [ ${#output} -ge 35 ];then
|
||||
echo "${output:0:30}…"
|
||||
else
|
||||
echo "${output}"
|
||||
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\$ '
|
||||
|
||||
#Alacritty custom window title
|
||||
if [ "$TERM" = alacritty ];then
|
||||
PROMPT_COMMAND='ala_title=`pwd | sed "s|${HOME}|~|"`;echo -ne "\e]2;${ala_title} — Alacritty\007"'
|
||||
fi
|
||||
#if [ "$TERM" = alacritty ];then
|
||||
## pwd_length=14
|
||||
## 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
|
||||
|
|
Loading…
Add table
Reference in a new issue