From e8d45d7b77850938dbb00e2e0498bba2e5dd8b51 Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Sun, 1 Oct 2023 23:35:32 +0000 Subject: [PATCH] feat: configure fish and bash Configure both shells to use the similar commands and provide similar experiences. --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6bfc8d8..7410f01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -133,9 +133,14 @@ RUN curl https://rtx.pub/install.sh | sh \ # configure fish RUN git clone https://github.com/NvChad/NvChad.git ~/.config/nvim \ && fish -c true \ +# configure fish and bash +RUN fish -c true \ && echo 'starship init fish | source' >> ${XDG_CONFIG_HOME}/fish/config.fish \ && echo '{$XDG_DATA_HOME}/rtx/bin/rtx activate fish | source' >> ${XDG_CONFIG_HOME}/fish/config.fish \ - && echo 'zoxide init fish | source' >> ${XDG_CONFIG_HOME}/fish/config.fish + && echo 'zoxide init fish | source' >> ${XDG_CONFIG_HOME}/fish/config.fish \ + && echo 'eval "$(starship init bash)"' >> ${HOME}/.bashrc \ + && echo 'eval "$(${XDG_DATA_HOME}/rtx/bin/rtx activate bash)"' >> ${HOME}/.bashrc \ + && echo 'eval "$(zoxide init bash)"' >> ${HOME}/.bashrc # install rtx plugins RUN ${XDG_DATA_HOME}/rtx/bin/rtx plugins install \