Browse Source

Modification affichage titre

master
Manfraid 3 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 () {
46 46
 	    ;&
47 47
 	*)
48 48
             case $cmd[1] in
49
-                less|more|v|e|vi|vim|emacs|ssh)
49
+                less|more|v|e|vi|vim|emacs|ssh|most)
50 50
                     # Display filename
51 51
                     t=$cmd[*]
52 52
                     tt=${${${(R)cmd:#-*}[2]}:t}

+ 3
- 1
rc/prompt.zsh View File

@@ -5,7 +5,9 @@
5 5
 
6 6
 zmodload zsh/datetime
7 7
 _vbe_prompt_precmd () {
8
-    _vbe_title "${SSH_TTY+${(%):-%M}:}${(%):-%50<..<%~}" "${SSH_TTY+${(%):-%M}:}${(%):-%20<..<%~}"
8
+    #_vbe_title "${SSH_TTY+${(%):-%M}:}${(%):-%50<..<%~}" "${SSH_TTY+${(%):-%M}:}${(%):-%20<..<%~}"
9
+    _vbe_title "${(%):-%50<..<%~}" "${(%):-%20<..<%~}"
10
+
9 11
 }
10 12
 _vbe_prompt_preexec () {
11 13
     _vbe_cmd_timestamp=$EPOCHSECONDS

Loading…
Cancel
Save