8428442ff0e0114fab32b90443911b11a4b7f5df
- Author
- Marc Cornellà <marc@mcornella.com>
- Committer
- Marc Cornellà <marc@mcornella.com>
- Date
Message
fix(termsupport): add workaround for directory tracking issues in Konsole
Fixes #11683
Related: 50c6786
Diff
1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
2index a800e651f5b7d0a7e6c972a448514675d2bcb1cb..d170ffcbfb150c2e948f863035355a6126ca3aa0 100644
3--- a/lib/termsupport.zsh
4+++ b/lib/termsupport.zsh
5@@ -151,7 +151,7 @@ function omz_termsupport_cwd {
6 URL_PATH="$(omz_urlencode -P $PWD)" || return 1
7
8 # Konsole errors if the HOST is provided
9- [[ -z "$KONSOLE_VERSION" ]] || URL_HOST=""
10+ [[ -z "$KONSOLE_PROFILE_NAME" && -z "$KONSOLE_DBUS_SESSION" ]] || URL_HOST=""
11
12 # common control sequence (OSC 7) to set current host and path
13 printf "\e]7;file://%s%s\e\\" "${URL_HOST}" "${URL_PATH}"