X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=bash%2F.bash_profile;h=da0b8fbf838a73d54b5f9c5676fba1600fba4eeb;hb=HEAD;hp=c7bcf264884b3a6bb61898b65e49211912213e46;hpb=f4c532b0e646e081f292e82ac2e9c5edc980e6f4;p=max%2Fdotfiles.git diff --git a/bash/.bash_profile b/bash/.bash_profile index c7bcf26..da0b8fb 100644 --- a/bash/.bash_profile +++ b/bash/.bash_profile @@ -1,18 +1,10 @@ -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