bash: Solo correr OSC 7 localmente

This commit is contained in:
Cat /dev/Nulo 2022-01-14 22:46:13 -03:00
parent dce73d7f82
commit df697759e2

View file

@ -33,5 +33,7 @@ osc7_cwd() {
printf '\e]7;file://%s%s\e\\' "$HOSTNAME" "$(_urlencode "$PWD")" printf '\e]7;file://%s%s\e\\' "$HOSTNAME" "$(_urlencode "$PWD")"
} }
PROMPT_COMMAND="osc7_cwd;$PROMPT_COMMAND" if ! "$REMOTE"; then
PROMPT_COMMAND="osc7_cwd;$PROMPT_COMMAND"
fi