Switch to my fork of termtitle, insert the current command name

This commit is contained in:
Adam Goldsmith 2020-02-20 12:48:11 -05:00
parent c74a679f49
commit df4f903a59
2 changed files with 4 additions and 2 deletions

2
.zimrc
View File

@ -7,7 +7,7 @@
zmodule environment zmodule environment
zmodule git zmodule git
zmodule input zmodule input
zmodule termtitle zmodule ad1217/termtitle
zmodule utility zmodule utility
# Prompt # Prompt

4
.zshrc
View File

@ -19,7 +19,9 @@ SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? '
WORDCHARS=${WORDCHARS//[\/]} WORDCHARS=${WORDCHARS//[\/]}
# Set window title format # Set window title format
zstyle ':zim:termtitle' format '%~:zsh' zstyle ':zim:termtitle' format '%~:${1:-zsh}'
# Set window title before running a command
zstyle ':zim:termtitle' hooks 'precmd' 'preexec'
# Append `../` to your input for each `.` you type after an initial `..` # Append `../` to your input for each `.` you type after an initial `..`
zstyle ':zim:input' double-dot-expand yes zstyle ':zim:input' double-dot-expand yes