ENH move ssh key gen to script
This commit is contained in:
parent
6429455db1
commit
e9967e72de
|
@ -0,0 +1,15 @@
|
|||
#! /bin/bash
|
||||
|
||||
# generate nicely formatted ssh key pair
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "provide a name/path for the key pair"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ssh-keygen -C "$(whoami)@$(uname -n)-$(date -I)" \
|
||||
-t ed25519 \
|
||||
-N '' \
|
||||
-f "$1"
|
||||
|
||||
|
|
@ -335,19 +335,6 @@ alias_if chezmoi \
|
|||
cza="chezmoi add" \
|
||||
czc="chezmoi cd"
|
||||
|
||||
## --------------------------------------------------
|
||||
## User functions
|
||||
## --------------------------------------------------
|
||||
|
||||
if exists ssh-keygen; then
|
||||
function skg () {
|
||||
ssh-keygen -C "$(whoami)@$(uname -n)-$(date -I)" \
|
||||
-t ed25519 \
|
||||
-N '' \
|
||||
-f "$1"
|
||||
}
|
||||
fi
|
||||
|
||||
## --------------------------------------------------
|
||||
## Manly Colors
|
||||
## --------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue