Commit 8968c224 authored by Adrien Dorsaz's avatar Adrien Dorsaz
Browse files

zsh: set terminal title dynamically

parent a2a16585
......@@ -33,3 +33,16 @@ zstyle ':completion:*' verbose true
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
function precmd_set_terminal_title() {
local title="${2}"
echo -en "\e]2;${title}\a"
function preexec_set_terminal_title() {
local title="$(basename "${PWD}"): ${2}"
echo -en "\e]2;${title}\a"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment