From df697759e2c72faf57deb20902e74b0c4a6238d7 Mon Sep 17 00:00:00 2001 From: Nulo Date: Fri, 14 Jan 2022 22:46:13 -0300 Subject: [PATCH] bash: Solo correr OSC 7 localmente --- .bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 83237f5..307591c 100644 --- a/.bashrc +++ b/.bashrc @@ -33,5 +33,7 @@ osc7_cwd() { 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