Stay in same dir when using terminal app

This commit is contained in:
Veit Heller
2014-08-27 00:01:27 +02:00
parent e8fbf9c344
commit 5931226fd1

3
zshrc
View File

@@ -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 "
}