aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-08-08 18:19:04 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-08-08 18:19:04 +0200
commit323d43a3854310b03367d71750a88663eef4c181 (patch)
treec7d698d815b7d46adedb4ef460f13f36ecfc790b /zsh
parent115add6f227c523332037c373a0294c6a0d46300 (diff)
downloaddotfiles-323d43a3854310b03367d71750a88663eef4c181.tar.xz
zshrc: replace termite/__vte_osc7 thing with portable version
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc9
1 files changed, 5 insertions, 4 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index ab6638c..79494e0 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -58,10 +58,6 @@ function preexec {
print -Pn "\e];$cmd:q\a"
}
-if [[ $TERM == xterm-termite && $DISPLAY == ":0" ]]; then
- . /etc/profile.d/vte.sh
- __vte_osc7
-fi
# Load all configs
#for f in ~/.config/zsh/zsh.d/*.zsh
@@ -120,3 +116,8 @@ if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then
zle -N zle-line-init
zle -N zle-line-finish
fi
+
+if [[ -n "$VTE_VERSION" ]]; then
+ source /etc/profile.d/vte.sh
+ __vte_prompt_command
+fi