swiftly icon indicating copy to clipboard operation
swiftly copied to clipboard

Swiftly should ask before modifying ~/.zprofile

Open rauhul opened this issue 9 months ago • 4 comments

See title. I dont actually want to source the env script in this file and I need to undo swiftly's changes anytime I init. I would prefer if swiftly ask me if I'd like to modify the file so I can opt out.

rauhul avatar Mar 20 '25 00:03 rauhul

@rauhul does the --no-modify-profile flag help with this workflow? https://swiftpackageindex.com/swiftlang/swiftly/0.4.0/documentation/swiftlydocs/swiftly-cli-reference#init

cmcgee1024 avatar Mar 21 '25 17:03 cmcgee1024

Yeah it definitely helps, but swiftly already asks before making other changes, I feel like it should do the same here

rauhul avatar Mar 25 '25 23:03 rauhul

I think that swiftly could add this as an item in the list of things that it says that it will do at the start of the init, under that single prompt with the summary of the installation effects. The idea is to minimize disruptions on the initial install.

@rauhul how does that sound?

cmcgee1024 avatar Mar 26 '25 12:03 cmcgee1024

@cmcgee1024 sounds like a good compromise!

rauhul avatar Mar 28 '25 19:03 rauhul