Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.bashrc .shrc or other #20

Closed
gintarasmartinaitis opened this issue Sep 3, 2021 · 2 comments
Closed

.bashrc .shrc or other #20

gintarasmartinaitis opened this issue Sep 3, 2021 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@gintarasmartinaitis
Copy link

Привет всем,
в какой файл надо записывать alias? Просто у меня так
Screenshot_20210903-185150
не работает. Прошу прощения если что не так.
С уважением Gintaras Martinaitis.

@green-green-avk
Copy link
Owner

green-green-avk commented Sep 7, 2021

alias can be set for a particular shell interpreter instance and IS NOT derived by any other its instance launched from it.

A shell startup script should be used to set aliases automatically. See below.

  • If it is about Android own environment (not PRooted), you can face either ksh or ash shell interpreter. Both of them use an ENV environment variable to set a default startup script for each shell execution (not only the login one).

    So, just:

    1. create, to say, a $DATA_DIR/.sh.rc
    2. add export ENV="$DATA_DIR/.sh.rc" into the "execute"
      field of your favorite:
      Screenshot_20210903-090511_Another Term (Debug)~2
    3. put what you wish into the $DATA_DIR/.sh.rc
    4. ???
    5. Profit.
  • If it is about some environment running under PRoot, I think, you would wish to use bash, so the only thing you need is to edit a .bashrc in your environment's home directory.

@green-green-avk green-green-avk self-assigned this Sep 7, 2021
@green-green-avk green-green-avk added the question Further information is requested label Sep 7, 2021
@green-green-avk green-green-avk added this to To do in Another Term Environment via automation Sep 7, 2021
@green-green-avk green-green-avk pinned this issue Sep 11, 2021
@green-green-avk
Copy link
Owner

The main question seems resolved.

Another Term Environment automation moved this from To do to Done Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Development

No branches or pull requests

2 participants