ADD alias for ssh key generation
This commit is contained in:
parent
7ee78c238e
commit
460ed423f2
|
@ -335,6 +335,19 @@ alias_if chezmoi \
|
||||||
cza="chezmoi add" \
|
cza="chezmoi add" \
|
||||||
czc="chezmoi cd"
|
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
|
## Manly Colors
|
||||||
## --------------------------------------------------
|
## --------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue