Add bash functions

This commit is contained in:
2020-07-16 23:59:22 +01:00
parent 36ecd69f51
commit bbdaad41b1
5 changed files with 46 additions and 36 deletions

View File

@@ -1,14 +0,0 @@
#!/bin/bash
TIMEOUT="1h"
NAME=$1
if [ -z "$NAME" ]; then
ssh-add -L
else
if [ -f "~/.ssh/id_ed25519_${NAME}" ]; then
ssh-add -t $TIMEOUT "~/.ssh/id_ed25519_${NAME}"
else
echo "No key named ${NAME} found..."
fi
fi

View File

@@ -1,10 +0,0 @@
#!/bin/bash
if [ -d "${HOME}/.dotfiles" ]; then
cd $HOME/.dotfiles
git pull --rebase --autostash
fi
if [ -d "${HOME}/.dotfiles-private" ]; then
cd $HOME/.dotfiles-private
git pull --rebase --autostash
fi