upterm
upterm copied to clipboard
cd does not work
Running cd
does nothing. There is no output in the console. I've tested this on 0.0.34 and latest master.
cd
appears to work for me on 0.0.34
. I am running El Capitan 10.11.5 (15F34)
. I do not see any console output, but directories have changed if I check with ls
. What is your OS version? Did you install using brew cask install black-screen
?
Can confirm that a new install of black-screen (via brew cask install) on El Capitan 10.11.5
, that cd
does not work on the latest version.
cd
is working on the latest version installed via brew cask
for me on:
@quarterto there is current directory on the left side of the bottom panel. Does it change when you cd?
No.
Please click on the smiley below, if you experience the same issue.
I had the same issue. Can you guys run alias cd
in your command line? If you you for example have alias cd="nocorrect cd"
black-screen
will use this alias to expand your prompt input.
But after that it gets lost because cd
expands to nocorrect cd
and black-screen
doesn't know nocorrect
command. Quick solution is to remove this alias from your config files.
Long lasting solution is to let PTY do it's job with cd and then parse the new folder from it. Another argument for #449
(this is the reason why the command (at least in my case) silently passes https://github.com/shockone/black-screen/blob/master/src/utils/Shell.ts#L50)
@viktomas how to parse shell session environment and not to lose the return status of the executed command?
For example, I execute cd foo; false
and want to know both the new PWD and that $?
is 1.
@shockone: Understand. I'll try to have a look how the $PROMPT_COMMAND
in zsh
works. I don't think it's going to be an easy issue to solve and I'm not even sure that pty.js
will provide all the interface we need.
@viktomas it's not the same as in $PROMPT_COMMAND
. A shell preserves the same session between jobs, but we create a new one every time in order to know when a previous job ended.
Hey I'm also experiencing this issue
I didn't know what to include in the debug info so I hope this picture will do
Same here on OSX 10.11.6 (15G31). Thought first it might be an Issue with zsh, but the same happens with bash as well.
Same here with zsh. I'm using macOS Sierra(10.12) Beta (16A201w).
I digged a little deeper and found following error message (funnily I don’t use rvm)
fs.js:1578 Uncaught (in promise) Error: ENOENT: no such file or directory, realpath '/Users/MYUSER/.rvm/rubies/default' at Error (native) at Object.realpathSync (fs.js:1578:18) at Object.fs.realpathSync (ELECTRON_ASAR.js:303:29) at /Applications/Black Screen.app/Contents/Resources/app.asar/compiled/src/plugins/RVM.js:23:23 at next (native) at fulfilled (/Applications/Black Screen.app/Contents/Resources/app.asar/compiled/src/plugins/RVM.js:4:58)
Where are we at on this? I'm getting the same problem. @shockone
The workaround is to remove the cd='nocorrect cd'
alias from your shell config.

Seems like it's the same problem. fasd_cd
is a function defined in prezto https://github.com/sorin-ionescu/prezto/blob/master/modules/fasd/init.zsh#L40
it works fine in zsh with iterm.