add zsh functions

This commit is contained in:
Jason Swank
2025-10-20 19:44:10 +00:00
parent 8fe8be5ad7
commit a474758772
6 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
function ssh-keygen-new() {
local key_type="${1:-ed25519}"
local key_file="${2:-$HOME/.ssh/id_${key_type}}"
local comment="${3:-$(printf '%s@%s' $(whoami) $(hostname))}"
ssh-keygen -t "$key_type" -f "$key_file" -C "$comment"
}