XcodesOrg / xcodes

The best command-line tool to install and switch between multiple versions of Xcode.
MIT License
3.58k stars 119 forks source link

[proposal] Add option to rename selected Xcode version #353

Open piotrekjeremicz opened 3 months ago

piotrekjeremicz commented 3 months ago

Hi everybody!

I'm not sure if I missed something, but I couldn't find an option that, after switching the Xcode version, will change the name of the selected version to "Xcode" and the old one to "Xcode x.x.x".

My proposal is simple - add new parameter to command: xcodes select 15.3 -r

Command description

OPTIONS:
  -r, --rename        On select, will automatically try and rename the active Xcode to Xcode.app, renaming the previous Xcode.app to the version name.

I could try to implement such solution. Let me know what do you think about it!