mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 20:40:32 +01:00
Set terminal title before commands.
This commit is contained in:
@@ -146,10 +146,18 @@ SAVEHIST=$HISTSIZE
|
|||||||
setopt autocd # Automatically cd to dirs typed
|
setopt autocd # Automatically cd to dirs typed
|
||||||
setopt notify
|
setopt notify
|
||||||
|
|
||||||
###########################
|
############################
|
||||||
# Configure terimal title #
|
# Configure terminal title #
|
||||||
###########################
|
############################
|
||||||
precmd ()
|
precmd ()
|
||||||
{
|
{
|
||||||
print -Pn "\e]0;%n@%m: %2~\a"
|
print -Pn "\e]0;%n@%m: %2~\a"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
preexec ()
|
||||||
|
{
|
||||||
|
if [ -n $1 ]; then
|
||||||
|
cmd=${1:0:20}
|
||||||
|
print -Pn "\e]0;$1\a"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user