mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-14 02:02:29 +00:00
Shell updates
This commit is contained in:
@@ -12,12 +12,13 @@ function update-dotfiles() {
|
||||
cd $prevdir
|
||||
}
|
||||
|
||||
# Wrapper around ssh-add to ease usage and also ensure basic timeouts
|
||||
function add-sshkey() {
|
||||
TIMEOUT="2h"
|
||||
NAME=$1
|
||||
|
||||
if [ -z "$NAME" ]; then
|
||||
echo "Current Keys"
|
||||
echo "Current Agent Keys"
|
||||
ssh-add -L | cut -d" " -f 3-
|
||||
else
|
||||
if [ -f "${HOME}/.ssh/id_ed25519_${NAME}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user