upterm icon indicating copy to clipboard operation
upterm copied to clipboard

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

Open Krystus opened this issue 9 years ago • 10 comments

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

Krystus avatar Feb 01 '16 17:02 Krystus

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

vlad-shatskyi avatar Feb 02 '16 09:02 vlad-shatskyi

@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

Krystus avatar Feb 02 '16 09:02 Krystus

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.

vlad-shatskyi avatar Feb 02 '16 09:02 vlad-shatskyi

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

Krystus avatar Feb 02 '16 09:02 Krystus

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 avatar Feb 03 '16 00:02 vlad-shatskyi

Now you don't need .bashrc.

vlad-shatskyi avatar Feb 06 '16 19:02 vlad-shatskyi

Have these three issues been fixed?

ilanbiala avatar Feb 07 '16 03:02 ilanbiala

Only the second one at the moment, @ilanbiala.

vlad-shatskyi avatar Feb 07 '16 09:02 vlad-shatskyi

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

eliorc avatar Sep 08 '18 06:09 eliorc

Is this related to builtin problems in #1215?

zautumnz avatar Mar 09 '19 20:03 zautumnz