How to add aliases in php-fpm shell? #564
Replies: 7 comments 6 replies
-
@MagePsycho you could add alias suggestions to the image, and otherwise you could add aliases to your host: alias m2="warden env-exec php-fpm bin/magento" You could also write a bash function on your host which copies your preferred |
Beta Was this translation helpful? Give feedback.
-
@tdgroot I have already created some aliases for AliasesWith aliases, you don't need to write full
Source - https://github.com/MagePsycho/magento2-warden-aliases But I would like to add some aliases in the container itself. |
Beta Was this translation helpful? Give feedback.
-
@davidalger, what do you think about adding these aliases to the warden itself? |
Beta Was this translation helpful? Give feedback.
-
Let's keep it open |
Beta Was this translation helpful? Give feedback.
-
Is there a way to add the following alias permanently
So that we can run any mage commands via
I can see that I can use MageRun alias in the shell as:
I want something similar for |
Beta Was this translation helpful? Give feedback.
-
@navarr Also, which Den changers are you referring to? |
Beta Was this translation helpful? Give feedback.
-
The issue I see with baking in aliases like this is that not every alias will always be available. When using existing sources that alias will point to an executable that doesn't exist until the user runs One solution I think would solve this, or at least make it easier, would be to customize the shell initialization script (e.g. Now where this could get hairy is in multiple shells. I know Den added support for Zsh and Fish. Zsh should be able to just consume the same init scripts as bash, but Fish has a different methodology (actually it's already built in if you just mount files to Would something like the above be acceptable @MagePsycho ? Thoughts @navarr ? |
Beta Was this translation helpful? Give feedback.
-
I would like to add some aliases on
php-fpm
shell, for example:I could add it
~/.bashrc
but it would be gone in re-build.Is there a way we can add it via
.warden/warden-env.yml
somehow? or can we add them2
alias on warden level?Beta Was this translation helpful? Give feedback.
All reactions