From c4ae5acda84bb6018107ccd3393186f8b12a9aaf Mon Sep 17 00:00:00 2001 From: Marissa Staib Date: Wed, 25 Sep 2019 23:25:22 +0000 Subject: [PATCH] Autocommitted updated scripts from blocky-cafe --- bash_aliases.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bash_aliases.sh b/bash_aliases.sh index a48a5e7..d0affe5 100644 --- a/bash_aliases.sh +++ b/bash_aliases.sh @@ -9,6 +9,12 @@ export EDITOR='vim -X' sock_proxy=$HOME/.ssh/ssh_auth_sock if [ -S "$(readlink $sock_proxy)" ]; then SSH_AUTH_SOCK=$sock_proxy +else + ( + set +x + eval `ssh-agent -s` + ln -f --symbolic "$SSH_AUTH_SOCK" "$sock_proxy" + ) fi alias rm="rm -i" @@ -67,7 +73,7 @@ function sync_git_only() if ! read -p "OK to push these changes? (Y/N) " -N 1 confirm; then confirm = "N" fi - if [[ "$confirm" != "Y" ]]; then + if [[ "$confirm" != "Y" ]] && [[ "$confirm" != "y" ]]; then echo "Not pushing yet." else git push