New backup 2025-04-17 16:45:03
This commit is contained in:
parent
84c6f1eaf2
commit
7a6b2f0637
1 changed files with 6 additions and 3 deletions
|
@ -119,14 +119,17 @@ if [[ "$HOSTNAME" == pod* ]];then
|
|||
fi
|
||||
|
||||
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\$ '
|
||||
#PS1='\[\e[1m\e[95m\]${prompt_prefix}\[\e[m\]${debian_chroot:+($debian_chroot)}\[\e[01;32m\]\u@\h\[\e[00m\]:\[\e[01;34m\]$(pwd)\[\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\]$(pwd|sed "s|${HOME}|~|"|perl -pe "s/(?<!(^~))(\\/.*)(?=\\/.*\\/)/\\/…/s"|xargs printf "\\e]2;%s — Alacritty\007")\[\e[00m\]\n\$ '
|
||||
|
||||
#Alacritty custom window title
|
||||
#if [ "$TERM" = alacritty ];then
|
||||
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"'
|
||||
PROMPT_COMMAND='pwd|sed "s|${HOME}|~|"|perl -pe "s/(?<!(^~))(\/.*)(?=\/.*\/)/\/…/s"|xargs printf "\e]2;%s — Alacritty\007"'
|
||||
## echo 'test'
|
||||
#fi
|
||||
fi
|
||||
|
||||
bind TAB:menu-complete
|
||||
|
|
Loading…
Add table
Reference in a new issue