Skip to content

Instantly share code, notes, and snippets.

@akloboucnik
akloboucnik / rename_phoenix_project.sh
Created October 16, 2021 11:53 — forked from vrymel/rename_phoenix_project.sh
Command steps to rename a Phoenix project
# tested on macOS 10.12.4
# based on https://elixirforum.com/t/how-to-change-a-phoenix-project-name-smoothly/1217/6
# replace values as necessary
current_otp="hello_phoenix"
current_name="HelloPhoenix"
new_otp=""
new_name=""
git grep -l $current_otp | xargs sed -i '' -e 's/'$current_otp'/'$new_otp'/g'