This is a simple random name generator that generates random names based on pre-defined syllables. The name is generated by combining a random syllable, adjective and animal.
The motivation behind this project is to create a simple and fun program that generates random names for various purposes, such as naming a project, a repository, a server, a device, etc. with command line interface.
The program accepts the following command line arguments:
-llowercase the generated name-uuppercase the generated name-ccapitalize the generated name-xUnix style output (spaces are replaced with underscores)-hprint help message
Makefile is provided for easy compilation, install and uninstall. To compile the program, run make, to install the program, run make install and to uninstall the program, run make uninstall.
It is designed to be installed locally in the user's home directory ~/.local/bin, so make sure that ~/.local/bin is in your PATH environment variable.
Put the following in your .bashrc, .bash_profile, or .zprofile file:
if [ -d "$HOME/.local/bin" ]; then
export PATH="$HOME/.local/bin:$PATH"
fiTo generate a random name, simply run the program without any arguments:
$ random-name-generatorTo generate a random name with a specific style, use the command line arguments or their combination:
$ random-name-generator -lxMkdir in unix-shell:
$ mkdir $(random-name-generator -lx)
or
$ random-name-generator | xargs mkdir