X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=bash%2F.bash_profile;h=8aa3b2f89f68e3ac5ab06cdb64c2b3f313f59053;hb=511f9cb01b77c15811cfa1c32d25432d9b89c311;hp=6b96684eb3bf7082a44493315a5b41e42d408ee5;hpb=c0578d6193c710b9a6786b18e9d655b15c4fcfb4;p=max%2Fdotfiles.git diff --git a/bash/.bash_profile b/bash/.bash_profile index 6b96684..8aa3b2f 100644 --- a/bash/.bash_profile +++ b/bash/.bash_profile @@ -1,11 +1,6 @@ -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" +export PAGER="/usr/bin/less -R" +export PATH="/home/max/.local/bin:${PATH}" if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists @@ -18,11 +13,7 @@ if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi -envfile="$HOME/.gnupg/gpg-agent.env" -if [[ -e "$envfile" ]] && kill -0 $(grep GPG_AGENT_INFO "$envfile" | cut -d: -f 2) 2>/dev/null; then - eval "$(cat "$envfile")" -else - eval "$(gpg-agent --daemon --enable-ssh-support --write-env-file "$envfile")" -fi -export GPG_AGENT_INFO # the env file does not contain the export statement -export SSH_AUTH_SOCK # enable gpg-agent for ssh +export TMPDIR="/home/max/.local/tmp" + +gpg-agent --daemon --enable-ssh-support \ + --write-env-file "${HOME}/.gpg-agent-info"