From 20af9ee7bc841f4b6da199052986c1f315f97e6f Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 20 Dec 2016 19:11:10 +0100 Subject: zsh: Remove precmd/preexec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They're causing issues when running commands containing funky characters. Signed-off-by: Johannes Löthberg --- zsh/themes/prompt_kyrias_setup | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/zsh/themes/prompt_kyrias_setup b/zsh/themes/prompt_kyrias_setup index 49b2b3f..27c6445 100644 --- a/zsh/themes/prompt_kyrias_setup +++ b/zsh/themes/prompt_kyrias_setup @@ -18,23 +18,10 @@ venv_prompt() { fi } -prompt_kyrias_precmd() { - # Print line to the window title - print -Pn "\e]0;%n %~\a" -} - -prompt_kyrias_preexec() { - # Print currently running command name to the window title - print -Pn "\e]0;$1:q\a" -} - prompt_kyrias_setup() { setopt prompt_subst autoload -U colors && colors - add-zsh-hook precmd prompt_kyrias_precmd - add-zsh-hook preexec prompt_kyrias_preexec - PROMPT='%{$bg[$(prompt_user_color)]$fg[white] %m %k%f$bg[white]$fg[$(prompt_user_color)] %~ %f%k$(venv_prompt)%} %{$bg[blue]%} λ %k %}' } -- cgit v1.2.3-70-g09d2