DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Discussion on: Auto-alias Your Repos

Collapse
emrox profile image
Stefan Bauckmeier

now you just have to be cautious to not check out any project having a name like a command on your machine. (like git clone https://server/myproject.git ~/code/ls)

Collapse
nickelkr profile image
Kyle Nickel Author

Yeah, that's clearly a risk, but most likely a outlier.

You could always add constraint in the loop to skip the iteration if the command already exists, as well.