From f90a326d2ede169a6a7a4fef983fc613c34eb1d2 Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Thu, 26 Nov 2020 21:33:39 +0100 Subject: add new pcks --- .bashrc | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index ae50f2d..8803a45 100755 --- a/.bashrc +++ b/.bashrc @@ -10,10 +10,10 @@ case $- in esac # Start the gpg-agent if not already running -if ! pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1; then - gpg-connect-agent /bye >/dev/null 2>&1 -fi -gpg-connect-agent updatestartuptty /bye >/dev/null +# if ! pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1; then +# gpg-connect-agent /bye >/dev/null 2>&1 +# fi +# gpg-connect-agent updatestartuptty /bye >/dev/null # use a tty for gpg # solves error: "gpg: signing failed: Inappropriate ioctl for device" @@ -21,13 +21,13 @@ GPG_TTY=$(tty) export GPG_TTY # Set SSH to use gpg-agent -unset SSH_AGENT_PID -if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then - if [[ -z "$SSH_AUTH_SOCK" ]] || [[ "$SSH_AUTH_SOCK" == *"apple.launchd"* ]]; then - SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" - export SSH_AUTH_SOCK - fi -fi +# unset SSH_AGENT_PID +# if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then +# if [[ -z "$SSH_AUTH_SOCK" ]] || [[ "$SSH_AUTH_SOCK" == *"apple.launchd"* ]]; then +# SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" +# export SSH_AUTH_SOCK +# fi +# fi # Shell if [ -z "$SSH_AUTH_SOCK" ] ; then @@ -53,4 +53,6 @@ for file in ~/.{aliases,path,extras}; do source "$file" fi done -unset file \ No newline at end of file +unset file +export VOLTA_HOME="$HOME/.volta" +export PATH="$VOLTA_HOME/bin:$PATH" -- cgit v1.2.3