Seting Bash Aliases for Cloudron Terminal
-
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?
-
Currently there is no way because the .bashrc is not editable. I guess we never thought of the Web Terminal as some sort of login shell.
-
It seems bash has a argument
--rcfile
. So, we can just fix it when we invoke the docker exec. -
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) -
Looks like this change broke WP - https://forum.cloudron.io/topic/5385/wp-cli-not-working-on-6-3-5