-export EDITOR="vim"
-export PATH="/home/max/.local/bin:${PATH}"
-export TMPDIR="/home/max/.local/tmp"
-
-if [ -n "$BASH_VERSION" ]; then
- # include .bashrc if it exists
- if [ -f "$HOME/.bashrc" ]; then
- . "$HOME/.bashrc"
- fi
-fi
-
-if [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
+if [ -r ~/.profile ]; then
+ . ~/.profile;
fi
-
-
-export PATH="$HOME/.cargo/bin:$PATH"
+case "$-" in *i*)
+ if [ -r ~/.bashrc ]; then
+ . ~/.bashrc
+ fi
+ ;;
+esac