#!/usr/bin/env bash set -euo pipefail # Shortcut names for the bash startup files BASH_RC=$HOME/.bashrc BASH_PROF=$HOME/.bash_profile BASH_SETTINGS=$HOME/.biostar.sh # Create the files if they don't exist touch $BASH_RC touch $BASH_PROF # Download the settings file curl -fsSL http://data.biostarhandbook.com/setup/biostar.settings.2026.sh > ~/.biostar.sh # Add source command to bashrc if it's not already there grep -qxF "source $BASH_SETTINGS" $BASH_RC || { printf "\nsource $BASH_SETTINGS\n" >> $BASH_RC } # Add source command to bash_profile if it's not already there grep -qxF "source $BASH_RC" $BASH_PROF || { printf "\nsource $BASH_RC\n" >> $BASH_PROF } # Make the bin directory if it doesn't exist mkdir -p $HOME/bin # Install the pixi tool. curl -fsSL https://pixi.sh/install.sh | sh echo "#" echo "# Biostar Handbook setup completed." echo "#" echo "# Close and reopen your terminal to apply the changes." echo "#"