Browse Source

Modification affichage titre

master
Manfraid 4 years ago
parent
commit
f9046fe615
2 changed files with 4 additions and 2 deletions
  1. 1
    1
      rc/02-title.zsh
  2. 3
    1
      rc/prompt.zsh

+ 1
- 1
rc/02-title.zsh View File

@@ -46,7 +46,7 @@ _title_preexec () {
;&
*)
case $cmd[1] in
less|more|v|e|vi|vim|emacs|ssh)
less|more|v|e|vi|vim|emacs|ssh|most)
# Display filename
t=$cmd[*]
tt=${${${(R)cmd:#-*}[2]}:t}

+ 3
- 1
rc/prompt.zsh View File

@@ -5,7 +5,9 @@

zmodload zsh/datetime
_vbe_prompt_precmd () {
_vbe_title "${SSH_TTY+${(%):-%M}:}${(%):-%50<..<%~}" "${SSH_TTY+${(%):-%M}:}${(%):-%20<..<%~}"
#_vbe_title "${SSH_TTY+${(%):-%M}:}${(%):-%50<..<%~}" "${SSH_TTY+${(%):-%M}:}${(%):-%20<..<%~}"
_vbe_title "${(%):-%50<..<%~}" "${(%):-%20<..<%~}"

}
_vbe_prompt_preexec () {
_vbe_cmd_timestamp=$EPOCHSECONDS

Loading…
Cancel
Save