Platformio-atom-ide-terminal: bash: update_terminal_cwd: command not found

Created on 23 Mar 2017  路  6Comments  路  Source: platformio/platformio-atom-ide-terminal

screen shot 2017-03-23 at 12 28 07 am

more information required outdated versions

Most helpful comment

Is there any update on this? It's happening to me in Atom terminal, but not in iterm or anywhere else. Is there a workaround?

EDIT: fixed from https://apple.stackexchange.com/questions/139807/what-does-update-terminal-cwd-do-in-the-terminal-of-os-x by adding this to ~/.bash_profile:

update_terminal_cwd() {
    # Identify the directory using a "file:" scheme URL,
    # including the host name to disambiguate local vs.
    # remote connections. Percent-escape spaces.
    local SEARCH=' '
    local REPLACE='%20'
    local PWD_URL="file://$HOSTNAME${PWD//$SEARCH/$REPLACE}"
    printf '\e]7;%s\a' "$PWD_URL"
}

All 6 comments

Same problem, here.

OS: macOS Sierra
Shell: GNU聽bash,聽version聽4.4.12(1)-release聽(x86_64-apple-darwin16.3.0)

update_terminal_cwd is a command specific to the Apple Terminal app. Not bash, not even iterm.

This plugin does respect whatever you've exported as PS1 (and PS2, etc) in your .bash_rc or .profile or whatever. Try http://ezprompt.net/ maybe?

Sorry, is it my fault? How can I fix it? I am not aware of having done anything unusual to my terminal (or .bash_profile).

Is there any update on this? It's happening to me in Atom terminal, but not in iterm or anywhere else. Is there a workaround?

EDIT: fixed from https://apple.stackexchange.com/questions/139807/what-does-update-terminal-cwd-do-in-the-terminal-of-os-x by adding this to ~/.bash_profile:

update_terminal_cwd() {
    # Identify the directory using a "file:" scheme URL,
    # including the host name to disambiguate local vs.
    # remote connections. Percent-escape spaces.
    local SEARCH=' '
    local REPLACE='%20'
    local PWD_URL="file://$HOSTNAME${PWD//$SEARCH/$REPLACE}"
    printf '\e]7;%s\a' "$PWD_URL"
}

@sebastientaggart This was the same issue I was experiencing in atom. Thanks for posting back here.

Please retest again with platformio-atom-ide-terminal 2.9.0 is using node-pty-prebuilt instead unmaintained and outdated pty.js

if issues persist open a new ticket with required information.

Thx =)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

v3ss0n picture v3ss0n  路  4Comments

hsaltan picture hsaltan  路  4Comments

conradolucas picture conradolucas  路  5Comments

JoanaRFerreira picture JoanaRFerreira  路  4Comments

courthead picture courthead  路  3Comments