mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-09-21 18:46:06 +02:00
Fix URL encoding for HOST and PWD variables
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
parent
f68258fdf1
commit
62e5024454
+2
-2
@@ -151,8 +151,8 @@ function omz_termsupport_cwd {
|
||||
local cache_key="$HOST:$PWD:${KONSOLE_PROFILE_NAME:+1}:${KONSOLE_DBUS_SESSION:+1}"
|
||||
if [[ "$_omz_termsupport_cwd_key" != "$cache_key" ]]; then
|
||||
local URL_HOST URL_PATH
|
||||
URL_HOST="$(omz_urlencode -P $HOST)" || return 1
|
||||
URL_PATH="$(omz_urlencode -P $PWD)" || return 1
|
||||
URL_HOST="$(omz_urlencode -P "$HOST")" || return 1
|
||||
URL_PATH="$(omz_urlencode -P "$PWD")" || return 1
|
||||
|
||||
# Konsole errors if the HOST is provided
|
||||
[[ -z "$KONSOLE_PROFILE_NAME" && -z "$KONSOLE_DBUS_SESSION" ]] || URL_HOST=""
|
||||
|
||||
Reference in New Issue
Block a user