3 ms·
Why not just use an alias? alias keygen="ssh-keygen -t rsa -b 4096 -C ''"
by hk__2 10y ago
Why not just use an alias?
alias keygen="ssh-keygen -t rsa -b 4096 -C ''"
- liw 10y agoAliases are per shell process. You need to reload your .bashrc (or whatever file you define aliases in) in every shell. Shell scripts are instantly available in all shell instances. Also, shell scripts can be invoked by shell scripts, which aliases can't.
- hk__2 10y agoI agree, but for something as simple as that I’d prefer a script to use `ssh-keygen` instead of relying on the presence of a one-line script in the PATH.