Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
crhultay authored Nov 26, 2024
1 parent 1bb9aeb commit 595ade9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion misc/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ install_mise_en_place() {

mise install

PATH="$HOME/.local/share/mise/shims:$PATH"
export PATH="$HOME/.local/share/mise/shims:$PATH"
}

install_tools() {
Expand Down Expand Up @@ -219,11 +219,21 @@ EndOfMessage
echo -e "\e[39m"
}

post_install() {
MISE_SHIM_PATH_COMMAND='export PATH="$HOME/.local/share/mise/shims:$PATH"'
if ! grep -Fxq "$MISE_SHIM_PATH_COMMAND" ~/.bashrc
then
echo $MISE_SHIM_PATH_COMMAND >> ~/.bashrc
echo -e "\e[0;32mInstalled Mise Shims into your ~/.bashrc\e[39m"
fi
}

install_dependencies() {
enigma_install_init
install_mise_en_place
install_tools
install_node_packages
post_install
}

install_bbs() {
Expand Down

0 comments on commit 595ade9

Please sign in to comment.