From 8fe76a42384b341936c2ccf9185117406cbcd3e8 Mon Sep 17 00:00:00 2001 From: Sh3llch0k <176466953+Sh3llch0k@users.noreply.github.com> Date: Sat, 23 Nov 2024 16:31:23 +0100 Subject: [PATCH 1/2] Change bashrc to bash_aliases source for installation Corrected the source command after adding exegol alias in .bash_aliases (.bashrc doesn't include .bash_aliases on some distros like Arch Linux). --- source/getting-started/install.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/getting-started/install.rst b/source/getting-started/install.rst index 1497842..a151b13 100644 --- a/source/getting-started/install.rst +++ b/source/getting-started/install.rst @@ -308,7 +308,7 @@ The installation of Exegol on Linux, macOS and Windows are very similar. It can .. code-block:: bash echo "alias exegol='sudo -E $(which exegol)'" >> ~/.bash_aliases - source ~/.bashrc + source ~/.bash_aliases .. group-tab:: Zsh From 5e883237f72000e85d9287d0c1ca1b1ef354a127 Mon Sep 17 00:00:00 2001 From: Sh3llch0k <176466953+Sh3llch0k@users.noreply.github.com> Date: Sun, 24 Nov 2024 10:54:21 +0100 Subject: [PATCH 2/2] Adding tip for bashrc / bash_aliases source (installation) Adding a tip for specific distros like Arch Linux instead of changing the source command during installation process. --- source/getting-started/install.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/getting-started/install.rst b/source/getting-started/install.rst index a151b13..939f4c7 100644 --- a/source/getting-started/install.rst +++ b/source/getting-started/install.rst @@ -308,7 +308,7 @@ The installation of Exegol on Linux, macOS and Windows are very similar. It can .. code-block:: bash echo "alias exegol='sudo -E $(which exegol)'" >> ~/.bash_aliases - source ~/.bash_aliases + source ~/.bashrc .. group-tab:: Zsh @@ -317,6 +317,16 @@ The installation of Exegol on Linux, macOS and Windows are very similar. It can echo "alias exegol='sudo -E $(which exegol)'" >> ~/.zshrc source ~/.zshrc + .. tip::distribution + + Please note that on most Linux distros, .bash_aliases is included in .bashrc. However, this is not the case in some distributions (i.e. Arch Linux). If this is your case, it is recommended to include .bash_aliases in .bashrc by adding these lines in your .bashrc file (for more details, please follow the documentation of your Linux distribution): + + .. code-block:: bash + + if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases + fi + .. tab:: Run as user .. warning::