-export NPM_PACKAGES="$HOME/.npm-packages"
-export EDITOR="/usr/bin/vim"
-export PAGER="/usr/bin/less"
-export PATH="/home/max/.local/bin:$NPM_PACKAGES/bin:$HOME/.gem/ruby/2.1.0/bin/:$HOME/.rvm/bin:${PATH}"
-[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
-unset MANPATH
-MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
-NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
-
-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 TMPDIR="/home/max/.local/tmp"
-
-gpg-agent --daemon --enable-ssh-support \
- --write-env-file "${HOME}/.gpg-agent-info"
+case "$-" in *i*)
+ if [ -r ~/.bashrc ]; then
+ . ~/.bashrc
+ fi
+ ;;
+esac