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