Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions install_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,18 @@ unset rc
EOF
fi

if [[ ! -f ~/.bash_profile ]]; then
# Install skeleton .bashrc if one is not present
cat >> ~/.bashrc <<"EOF"
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
EOF
fi

# Stop the annoying zsh default shell warning
if [[ ! -f ~/.bash_profile ]] || ! grep -E BASH_SILENCE_DEPRECATION_WARNING ~/.bash_profile >/dev/null 2>&1 ; then
echo "export BASH_SILENCE_DEPRECATION_WARNING=1" >> ~/.bash_profile
Expand Down