Adding the ssh-add script that checks if there is an identity before add one

This commit is contained in:
Bruno Fontes 2018-07-27 20:36:35 -03:00
parent f95d6ecb4f
commit 8f4e11ada7
Signed by: brunofontes
GPG Key ID: EE3447CE80048495
2 changed files with 17 additions and 4 deletions

View File

@ -1,5 +1,13 @@
# linuxShortcuts # linuxShortcuts
## apt-get
### update.sh
A basic script to update your packages with apt-get
## Egnyte
### pathToEgnyte.sh
A simple script that converts Egnyte file paths from Z:\ to our company website URL
## Pacman ## Pacman
### aur ### aur
Just a simple and fast shortcut to install aur packages using aurman with no confirmation. Just a simple and fast shortcut to install aur packages using aurman with no confirmation.
@ -10,11 +18,13 @@ Just a simple and fast shortcut to install aur packages using aurman with no con
**Example**: for `visual-studio-code-bin` just type `aur visual-studio-code-bin`. It will ask for your root password and it will install it with all dependencies. **Example**: for `visual-studio-code-bin` just type `aur visual-studio-code-bin`. It will ask for your root password and it will install it with all dependencies.
### updateRepositories.sh ### updateRepositories.sh
A basic script to update the original packages with Pacman and aurman A basic script to update the original packages with Pacman and aurman
## Services
### run-media-bruno-Multimedia.mount
My script to mount a partition out of `FSTAB`
## apt-get ## SSH
### update.sh ### check-ssh-identity.sh
A basic script to update your packages with apt-get Add a ssh identity if there is none.

3
SSH/check-ssh-identity.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
# Add a SSH identity if nothing were found
ssh-add -l > /dev/null || ssh-add