Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why not just use an alias?

    alias keygen="ssh-keygen -t rsa -b 4096 -C ''"


Aliases 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.


I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: