From 5931226fd1dcb07ffda1045b988e30d0c167a90e Mon Sep 17 00:00:00 2001 From: Veit Heller Date: Wed, 27 Aug 2014 00:01:27 +0200 Subject: [PATCH] Stay in same dir when using terminal app --- zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zshrc b/zshrc index c07ced4..e504af8 100644 --- a/zshrc +++ b/zshrc @@ -49,6 +49,9 @@ expand-or-complete-with-dots(){ zle -N expand-or-complete-with-dots bindkey "Î" expand-or-complete-with-dots +precmd () {print -Pn "\e]2; %~/ \a"} +preexec () {print -Pn "\e]2; %~/ \a"} + insert_sudo () { zle beginning-of-line; zle -U "sudo " }