From 4401cf2b053ac4221afc8743d01d4c734e80bf56 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Wed, 12 Apr 2017 11:15:13 +0200 Subject: [PATCH] Set terminal title in zsh. --- zsh/.config/zsh/.zshrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 8ada066..1dd48b2 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -145,3 +145,11 @@ SAVEHIST=$HISTSIZE setopt autocd # Automatically cd to dirs typed setopt notify + +########################### +# Configure terimal title # +########################### +precmd () +{ + print -Pn "\e]0;%n@%m: %2~\a" +}