Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

How can I use .bash_profile aliases in black-screen? #209

Open
Krystus opened this issue Feb 1, 2016 · 10 comments
Open

How can I use .bash_profile aliases in black-screen? #209

Krystus opened this issue Feb 1, 2016 · 10 comments

Comments

@Krystus
Copy link

Krystus commented Feb 1, 2016

Why I can't use .bash_profile aliases in black-screen? I have to do something or it is impossible for now?

@vlad-shatskyi
Copy link
Contributor

They should be imported automatically. If they're not, it's a bug, and I'd need more information about your setup.

@Krystus
Copy link
Author

Krystus commented Feb 2, 2016

@ShockOne I have a test release 0.36.4 on iMac 27" El Capitan 10.11.3 (15D21).

zrzut ekranu 2016-02-02 o 10 11 40
zrzut ekranu 2016-02-02 o 10 11 01

@vlad-shatskyi
Copy link
Contributor

In Black Screen, press cmd+option+i to open developer tools, switch to the Console tab and type process.env.SHELL is it /bin/bash?

If yes, please try to copy the file .bash_profile to .bashrc and reload Black Screen.

Please let me know if any of this helped.

@Krystus
Copy link
Author

Krystus commented Feb 2, 2016

Yes, that was /bin/bash. After .bash_profile to .bashrc copy of aliases easy commands like desk, twc working. But take a look at my aliases in second screen... homestead up and twc.start/stop still don't work at all. command "function" not found and php-fpm.start: command not found.

zrzut ekranu 2016-02-02 o 10 33 45

@vlad-shatskyi
Copy link
Contributor

There are three bugs. Good catch!

  • Aliases aren't expanded after command separators (&&, |). That's why php-fpm.start does't work. Should be fixed soon.
  • .bash_profile isn't loaded. It's intended for non-interactive sessions, but clearly people use it as interactive session configs too. Should be fixed soon.
  • Shell's built-in functions don't work. In your case function, but also things like nocorrect and so on. Might be harder to fix.

@vlad-shatskyi
Copy link
Contributor

Now you don't need .bashrc.

@ilanbiala
Copy link

Have these three issues been fixed?

@vlad-shatskyi
Copy link
Contributor

Only the second one at the moment, @ilanbiala.

@eliorc
Copy link

eliorc commented Sep 8, 2018

I'm having the same problem with Ubuntu 18.04, Upterm 0.4.3.

All my aliases are in ~/.bashrc and are not being loaded - meaning they don't work and obviously don't autocomplete.

Typing process.env.SHELL in the developer tools console shows /bin/bash

@zacanger
Copy link
Contributor

zacanger commented Mar 9, 2019

Is this related to builtin problems in #1215?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants