From 6febcd0171d97a695e255a3dbb6365183b1624c6 Mon Sep 17 00:00:00 2001 From: opal Date: Wed, 8 Nov 2023 11:41:07 -0800 Subject: [PATCH] stuff w/ bash --- .bash_profile | 2 +- .bashrc | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.bash_profile b/.bash_profile index b589c0b..219972e 100644 --- a/.bash_profile +++ b/.bash_profile @@ -8,4 +8,4 @@ export BROWSER=/usr/bin/firefox export VISUAL=vim export EDITOR=vim export QT_QPA_PLATFORMTHEME=qt5ct -[[ -f ~/.bashrc ]] && . ~/.bashrc +#[[ -f ~/.bashrc ]] && . ~/.bashrc diff --git a/.bashrc b/.bashrc index c3f4097..5b6ed96 100755 --- a/.bashrc +++ b/.bashrc @@ -17,8 +17,11 @@ fi ####################################################### # SSH ####################################################### -eval $(keychain --eval --quiet ry_ecdsa) -eval $(keychain --eval --quiet id_rsa) +tty -s; +if [ "0" == "$?" ]; then + eval $(keychain --eval --quiet ry_ecdsa) + eval $(keychain --eval --quiet id_rsa) +fi #######################################################