Seting Bash Aliases for Cloudron Terminal
-
wrote on Apr 30, 2021, 1:51 PM last edited by girish May 4, 2021, 6:13 AM
I've been able to create aliases for the Cloudron terminal by creating the file
/app/data/.bash_aliases
putting the aliases there and then running
source /app/data/.bash_aliases
every time I log into the terminal. I was assuming that adding a .bashrc file wouldn't do anything. Is there any way for me to be able to skip the "source" step?
-
I've been able to create aliases for the Cloudron terminal by creating the file
/app/data/.bash_aliases
putting the aliases there and then running
source /app/data/.bash_aliases
every time I log into the terminal. I was assuming that adding a .bashrc file wouldn't do anything. Is there any way for me to be able to skip the "source" step?
-
wrote on May 4, 2021, 3:45 AM last edited by
would that require a new base image?
or simply a source line wrapped in an if exist statement in the start script for the web shell? -
would that require a new base image?
or simply a source line wrapped in an if exist statement in the start script for the web shell? -
OK, I have made a fix to source in
/app/data/.bashrc
in web terminal. This requires a new Cloudron release, so it will be in next release.If you use the CLI tool, just update to 4.11.0 and the
cloudron exec
will automatically source in that file with the current Cloudron release (6.2.8) -
wrote on May 6, 2021, 6:16 AM last edited by
I love it when an inspiration comes together!
-
-
Looks like this change broke WP - https://forum.cloudron.io/topic/5385/wp-cli-not-working-on-6-3-5