diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2016-12-20 19:11:10 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2017-06-01 18:37:35 +0200 |
commit | 20af9ee7bc841f4b6da199052986c1f315f97e6f (patch) | |
tree | 71c9a7fab3b2cd20f9f7f4bf57a2bab61fb85ef9 /zsh | |
parent | 2d8fe086c3fe68dde16e41d892d6b5e6ba97cab9 (diff) | |
download | dotfiles-20af9ee7bc841f4b6da199052986c1f315f97e6f.tar.xz |
zsh: Remove precmd/preexec
They're causing issues when running commands containing funky
characters.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/themes/prompt_kyrias_setup | 13 |
1 files changed, 0 insertions, 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 %}' } |