Such a ssh-add wrapper

This commit is contained in:
Samuel FORESTIER
2018-02-21 15:55:02 +01:00
parent cad6666f48
commit de94dbb88a

17
.bashrc

@ -83,6 +83,8 @@ case $(($RANDOM % 2)) in
figlet "... mon amour < 3"
;;
esac
echo -e "\033[0;0m"
;;
esac
@ -110,3 +112,18 @@ extract()
echo "'$1' is not a valid file !"
fi
}
# Personal macro to live without the f*cking GNOME-keyring which can't handle ED25519 keys...
keys()
{
if [[ $1 == "up" ]]; then
# Let's load the keys into the SSH agent, for 1 hour
ssh-add
elif [[ $1 == "down" ]]; then
# Let's unload the keys (why would you do that ?)
ssh-add -D
else
# Just print out the loaded keys...
ssh-add -l
fi
}