X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=bash%2F.bash_profile;h=da0b8fbf838a73d54b5f9c5676fba1600fba4eeb;hb=HEAD;hp=8aa3b2f89f68e3ac5ab06cdb64c2b3f313f59053;hpb=511f9cb01b77c15811cfa1c32d25432d9b89c311;p=max%2Fdotfiles.git diff --git a/bash/.bash_profile b/bash/.bash_profile index 8aa3b2f..da0b8fb 100644 --- a/bash/.bash_profile +++ b/bash/.bash_profile @@ -1,19 +1,10 @@ -export EDITOR="/usr/bin/vim" -export PAGER="/usr/bin/less -R" -export PATH="/home/max/.local/bin:${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